aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-01-31 13:08:29 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2012-01-31 13:27:22 +0200
commit6503a6f3b533c4d86c61400d098db14183cc85fb (patch)
treeb93bb001e63d09014a701536763999b9a9723dcb /doc
parente0ba96e21ab0bc4d54a9ec033e9bb504170d4b5d (diff)
downloaddico-6503a6f3b533c4d86c61400d098db14183cc85fb.tar.gz
dico-6503a6f3b533c4d86c61400d098db14183cc85fb.tar.bz2
Implement the nprefix strategy.
* configure.ac: Configure the nprefix module. * NEWS: Document nprefix. * doc/dico.texi: Likewise. * modules/Makefile.am (SUBDIRS): Add nprefix. * modules/nprefix/Makefile.am: New file. * modules/nprefix/nprefix.c: New file. * modules/nprefix/tests/Makefile.am: New file. * modules/nprefix/tests/atlocal.in: New file. * modules/nprefix/tests/dicod.cfin: New file. * modules/nprefix/tests/dict.out: New file. * modules/nprefix/tests/np00.at: New file. * modules/nprefix/tests/np01.at: New file. * modules/nprefix/tests/np02.at: New file. * modules/nprefix/tests/np03.at: New file. * modules/nprefix/tests/np04.at: New file. * modules/nprefix/tests/testsuite.at: New file. * modules/nprefix/tests/.gitignore: New file.
Diffstat (limited to 'doc')
-rw-r--r--doc/dico.texi27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/dico.texi b/doc/dico.texi
index b3fac81..28632e2 100644
--- a/doc/dico.texi
+++ b/doc/dico.texi
@@ -171,6 +171,7 @@ Modules
* stratall::
* substr::
* word::
+* nprefix::
* pcre::
* ldap::
@@ -2619,6 +2620,7 @@ distribution of GNU Dico version @value{VERSION}.
* stratall::
* substr::
* word::
+* nprefix::
* pcre::
* ldap::
@end menu
@@ -3878,6 +3880,31 @@ S: .
S: 250 Command complete [d/m/c = 0/1/995 0.003r 0.004u 0.000s]
@end example
+@node nprefix
+@section @command{Nprefix}
+The @command{nprefix} module provides a strategy similar to
+@samp{prefix}, but which returns the specified range of bytes. For
+example, the statement
+
+@example
+MATCH @var{dict} nprefix @var{skip}#@var{count}#@var{string}
+@end example
+
+@noindent
+where @var{skip} and @var{count} are positive integer numbers, returns
+at most @var{count} headwords whose prefix matches @var{string},
+omitting first @var{skip} unique matches.
+
+The entire @samp{@var{skip}#@var{count}#} construct is optional. If
+not supplied, the @samp{nprefix} strategy behaves exactly as
+@samp{prefix}.
+
+The module is loaded using this simple statement:
+
+@example
+load-module nprefix;
+@end example
+
@node pcre
@section @command{Pcre}
@cindex pcre

Return to:

Send suggestions and report system problems to the System administrator.