--- lib/Search/TokyoDystopia.pm 2008/08/18 17:26:01 15 +++ lib/Search/TokyoDystopia.pm 2008/08/18 18:32:55 19 @@ -32,6 +32,16 @@ tcidbclose tcidbput tcidbout +tcidbget +tcidbsearch +IDBSSUBSTR +IDBSPREFIX +IDBSSUFFIX +IDBSFULL +IDBSTOKEN +IDBSTOKPRE +IDBSTOKSUF +tcidbiterinit ); =head1 NAME @@ -99,7 +109,37 @@ =head2 tcidbput - my $success = tcidbput( $idb, $id, $utf8_text ); + my $success = tcidbput( $idb, $id, $text ); + +=head2 tcidbout + + my $success = tcidbout( $idb, $id ); + +=head2 tcidbget + + my $text = tcidbget( $idb, $id ); + +=head2 tcidbsearch + + my @ids = tcidbsearch( $idb, $word, IDBSSUBSTR ) + +=cut + +use constant { + IDBSSUBSTR => 0, # substring matching + IDBSPREFIX => 1, # prefix matching + IDBSSUFFIX => 2, # suffix matching + IDBSFULL => 3, # full matching + IDBSTOKEN => 4, # token matching + IDBSTOKPRE => 5, # token prefix matching + IDBSTOKSUF => 6, # token suffix matching +}; + +=head2 tcidbiterinit + + my $success = tcidbiterinit; + +=cut =head1 KNOWN BUGS