/[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 38 by dpavlin, Sun Sep 21 21:27:40 2008 UTC revision 42 by dpavlin, Sat Feb 14 17:56:02 2009 UTC
# Line 124  JDBSSUBSTR Line 124  JDBSSUBSTR
124  JDBSPREFIX  JDBSPREFIX
125  JDBSSUFFIX  JDBSSUFFIX
126  JDBSFULL  JDBSFULL
 JDBSTOKEN  
 JDBSTOKPRE  
 JDBSTOKSUF  
127  tcjdbiterinit  tcjdbiterinit
128  tcjdbiternext  tcjdbiternext
129  tcjdbsync  tcjdbsync
# Line 458  use constant { Line 455  use constant {
455    
456  =head2 tcjdbput  =head2 tcjdbput
457    
458    my $success = tcjdbput( $jdb, $id, $text );    my $success = tcjdbput( $jdb, $id, [ 'word', 'word2' ] );
459    
460  =head2 tcjdbput2  =head2 tcjdbput2
461    
# Line 472  use constant { Line 469  use constant {
469    
470    my $ids = tcjdbsearch( $jdb, $word, JDBSSUBSTR );    my $ids = tcjdbsearch( $jdb, $word, JDBSSUBSTR );
471    
472    =head2 tcjdbsearch2
473    
474      my $ids = tcjdbsearch2( $jdb, $word );
475    
476  =cut  =cut
477    
478  use constant {  use constant {
479          JDBSSUBSTR => 0,        # substring matching          JDBSSUBSTR => 0,        # substring matching
480          JDBSPREFIX => 1,        # prefix matching          JDBSPREFIX => 1,        # prefix matching
481          JDBSUFFIX => 2,         # suffix matching          JDBSSUFFIX => 2,        # suffix matching
482          JDBFULL => 3,           # full matching          JDBSFULL   => 3,        # full matching
         JDBTOKEN => 4,          # token matching  
         JDBTOKPRE => 5,         # token prefix matching  
         JDBTOKSUF => 6,         # token suffix matching  
483  };  };
484    
485  =head2 tcjdbsync  =head2 tcjdbsync

Legend:
Removed from v.38  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26