32 |
tcidbclose |
tcidbclose |
33 |
tcidbput |
tcidbput |
34 |
tcidbout |
tcidbout |
35 |
|
tcidbget |
36 |
|
tcidbsearch |
37 |
|
IDBSSUBSTR |
38 |
|
IDBSPREFIX |
39 |
|
IDBSSUFFIX |
40 |
|
IDBSFULL |
41 |
|
IDBSTOKEN |
42 |
|
IDBSTOKPRE |
43 |
|
IDBSTOKSUF |
44 |
|
tcidbiterinit |
45 |
|
tcidbiternext |
46 |
); |
); |
47 |
|
|
48 |
=head1 NAME |
=head1 NAME |
110 |
|
|
111 |
=head2 tcidbput |
=head2 tcidbput |
112 |
|
|
113 |
my $success = tcidbput( $idb, $id, $utf8_text ); |
my $success = tcidbput( $idb, $id, $text ); |
114 |
|
|
115 |
=head2 tcidbout |
=head2 tcidbout |
116 |
|
|
117 |
my $success = tcidbout( $idb, $id ); |
my $success = tcidbout( $idb, $id ); |
118 |
|
|
119 |
|
=head2 tcidbget |
120 |
|
|
121 |
|
my $text = tcidbget( $idb, $id ); |
122 |
|
|
123 |
|
=head2 tcidbsearch |
124 |
|
|
125 |
|
my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR ) |
126 |
|
|
127 |
|
=cut |
128 |
|
|
129 |
|
use constant { |
130 |
|
IDBSSUBSTR => 0, # substring matching |
131 |
|
IDBSPREFIX => 1, # prefix matching |
132 |
|
IDBSSUFFIX => 2, # suffix matching |
133 |
|
IDBSFULL => 3, # full matching |
134 |
|
IDBSTOKEN => 4, # token matching |
135 |
|
IDBSTOKPRE => 5, # token prefix matching |
136 |
|
IDBSTOKSUF => 6, # token suffix matching |
137 |
|
}; |
138 |
|
|
139 |
|
=head2 tcidbiterinit |
140 |
|
|
141 |
|
my $success = tcidbiterinit( $idb ); |
142 |
|
|
143 |
|
=head2 tcidbiternext |
144 |
|
|
145 |
|
my $id = tcidbiternext( $idb ); |
146 |
|
|
147 |
|
=cut |
148 |
|
|
149 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
150 |
|
|
151 |
Low-level functions often just die when called on invalid (or deleted) database |
Low-level functions often just die when called on invalid (or deleted) database |