/[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 17 by dpavlin, Mon Aug 18 17:45:56 2008 UTC revision 22 by dpavlin, Mon Aug 18 18:53:39 2008 UTC
# Line 33  tcidbclose Line 33  tcidbclose
33  tcidbput  tcidbput
34  tcidbout  tcidbout
35  tcidbget  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  );  );
49    
50  =head1 NAME  =head1 NAME
# Line 110  use constant { Line 122  use constant {
122        
123    my $text = tcidbget( $idb, $id );    my $text = tcidbget( $idb, $id );
124    
125    =head2 tcidbsearch
126    
127      my $ids = tcidbsearch( $idb, $word, IDBSSUBSTR );
128    
129    =cut
130    
131    use constant {
132            IDBSSUBSTR => 0,                # substring matching
133            IDBSPREFIX => 1,                # prefix matching
134            IDBSSUFFIX => 2,                # suffix matching
135            IDBSFULL => 3,          # full matching
136            IDBSTOKEN => 4,         # token matching
137            IDBSTOKPRE => 5,                # token prefix matching
138            IDBSTOKSUF => 6,                # token suffix matching
139    };
140    
141    =head2 tcidbsearch2
142    
143      my $ids = tcidbsearch2( $idb, $expr );
144    
145    =head2 tcidbiterinit
146    
147      my $success = tcidbiterinit( $idb );
148    
149    =head2 tcidbiternext
150    
151      my $id = tcidbiternext( $idb );
152    
153    =head2 tcidbsync
154    
155      my $success = tcidbsync( $idb );
156    
157    =cut
158    
159  =head1 KNOWN BUGS  =head1 KNOWN BUGS
160    
161  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.17  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26