/[Search-TokyoDystopia]/lib/Search/TokyoDystopia.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Search/TokyoDystopia.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 16 by dpavlin, Mon Aug 18 17:27:11 2008 UTC revision 24 by dpavlin, Mon Aug 18 18:57:26 2008 UTC
# Line 32  IDBOLCKNB Line 32  IDBOLCKNB
32  tcidbclose  tcidbclose
33  tcidbput  tcidbput
34  tcidbout  tcidbout
35    tcidbget
36    tcidbsearch
37    tcidbsearch2
38    IDBSSUBSTR
39    IDBSPREFIX
40    IDBSSUFFIX
41    IDBSFULL
42    IDBSTOKEN
43    IDBSTOKPRE
44    IDBSTOKSUF
45    tcidbiterinit
46    tcidbiternext
47    tcidbsync
48    tcidboptimize
49    tcidbvanish
50  );  );
51    
52  =head1 NAME  =head1 NAME
# Line 99  use constant { Line 114  use constant {
114    
115  =head2 tcidbput  =head2 tcidbput
116    
117    my $success = tcidbput( $idb, $id, $utf8_text );    my $success = tcidbput( $idb, $id, $text );
118    
119  =head2 tcidbout  =head2 tcidbout
120        
121    my $success = tcidbout( $idb, $id );    my $success = tcidbout( $idb, $id );
122    
123    =head2 tcidbget
124      
125      my $text = tcidbget( $idb, $id );
126    
127    =head2 tcidbsearch
128    
129      my $ids = tcidbsearch( $idb, $word, IDBSSUBSTR );
130    
131    =cut
132    
133    use constant {
134            IDBSSUBSTR => 0,                # substring matching
135            IDBSPREFIX => 1,                # prefix matching
136            IDBSSUFFIX => 2,                # suffix matching
137            IDBSFULL => 3,          # full matching
138            IDBSTOKEN => 4,         # token matching
139            IDBSTOKPRE => 5,                # token prefix matching
140            IDBSTOKSUF => 6,                # token suffix matching
141    };
142    
143    =head2 tcidbsearch2
144    
145      my $ids = tcidbsearch2( $idb, $expr );
146    
147    =head2 tcidbiterinit
148    
149      my $success = tcidbiterinit( $idb );
150    
151    =head2 tcidbiternext
152    
153      my $id = tcidbiternext( $idb );
154    
155    =head2 tcidbsync
156    
157      my $success = tcidbsync( $idb );
158    
159    =head2 tcidboptimize
160    
161      my $success = tcidboptimize( $idb );
162    
163    =head2 tcidbvanish
164    
165      my $success = tcidbvanish( $idb );
166    
167    =cut
168    
169  =head1 KNOWN BUGS  =head1 KNOWN BUGS
170    
171  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

Legend:
Removed from v.16  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26