--- lib/Search/TokyoDystopia.pm 2008/08/18 15:35:18 14 +++ lib/Search/TokyoDystopia.pm 2008/08/18 18:28:05 18 @@ -31,6 +31,16 @@ IDBOLCKNB tcidbclose tcidbput +tcidbout +tcidbget +tcidbsearch +IDBSSUBSTR +IDBSPREFIX +IDBSSUFFIX +IDBSFULL +IDBSTOKEN +IDBSTOKPRE +IDBSTOKSUF ); =head1 NAME @@ -98,7 +108,31 @@ =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 +}; =head1 KNOWN BUGS