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 |
); |
); |
45 |
|
|
46 |
=head1 NAME |
=head1 NAME |
108 |
|
|
109 |
=head2 tcidbput |
=head2 tcidbput |
110 |
|
|
111 |
my $success = tcidbput( $idb, $id, $utf8_text ); |
my $success = tcidbput( $idb, $id, $text ); |
112 |
|
|
113 |
=head2 tcidbout |
=head2 tcidbout |
114 |
|
|
115 |
my $success = tcidbout( $idb, $id ); |
my $success = tcidbout( $idb, $id ); |
116 |
|
|
117 |
|
=head2 tcidbget |
118 |
|
|
119 |
|
my $text = tcidbget( $idb, $id ); |
120 |
|
|
121 |
|
=head2 tcidbsearch |
122 |
|
|
123 |
|
my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR ) |
124 |
|
|
125 |
|
=cut |
126 |
|
|
127 |
|
use constant { |
128 |
|
IDBSSUBSTR => 0, # substring matching |
129 |
|
IDBSPREFIX => 1, # prefix matching |
130 |
|
IDBSSUFFIX => 2, # suffix matching |
131 |
|
IDBSFULL => 3, # full matching |
132 |
|
IDBSTOKEN => 4, # token matching |
133 |
|
IDBSTOKPRE => 5, # token prefix matching |
134 |
|
IDBSTOKSUF => 6, # token suffix matching |
135 |
|
}; |
136 |
|
|
137 |
=head1 KNOWN BUGS |
=head1 KNOWN BUGS |
138 |
|
|
139 |
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 |