/[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 13 by dpavlin, Mon Aug 18 13:17:52 2008 UTC revision 21 by dpavlin, Mon Aug 18 18:48:33 2008 UTC
# Line 30  IDBOTRUNC Line 30  IDBOTRUNC
30  IDBONOLCK  IDBONOLCK
31  IDBOLCKNB  IDBOLCKNB
32  tcidbclose  tcidbclose
33    tcidbput
34    tcidbout
35    tcidbget
36    tcidbsearch
37    IDBSSUBSTR
38    IDBSPREFIX
39    IDBSSUFFIX
40    IDBSFULL
41    IDBSTOKEN
42    IDBSTOKPRE
43    IDBSTOKSUF
44    tcidbiterinit
45    tcidbiternext
46    tcidbsync
47  );  );
48    
49  =head1 NAME  =head1 NAME
# Line 95  use constant { Line 109  use constant {
109    
110    my $success = tcidbclose( $idb );    my $success = tcidbclose( $idb );
111    
112    =head2 tcidbput
113    
114      my $success = tcidbput( $idb, $id, $text );
115    
116    =head2 tcidbout
117      
118      my $success = tcidbout( $idb, $id );
119    
120    =head2 tcidbget
121      
122      my $text = tcidbget( $idb, $id );
123    
124    =head2 tcidbsearch
125    
126      my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR )
127    
128    =cut
129    
130    use constant {
131            IDBSSUBSTR => 0,                # substring matching
132            IDBSPREFIX => 1,                # prefix matching
133            IDBSSUFFIX => 2,                # suffix matching
134            IDBSFULL => 3,          # full matching
135            IDBSTOKEN => 4,         # token matching
136            IDBSTOKPRE => 5,                # token prefix matching
137            IDBSTOKSUF => 6,                # token suffix matching
138    };
139    
140    =head2 tcidbiterinit
141    
142      my $success = tcidbiterinit( $idb );
143    
144    =head2 tcidbiternext
145    
146      my $id = tcidbiternext( $idb );
147    
148    =head2 tcidbsync
149    
150      my $success = tcidbsync( $idb );
151    
152    =cut
153    
154  =head1 KNOWN BUGS  =head1 KNOWN BUGS
155    
156  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.13  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.26