From da934a2c8bda48f87cb49db30b946d7b1a13aa4b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 28 Feb 2003 14:09:49 +0000 Subject: [PATCH] Documented unread --- doc/recordmodel.xml | 58 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/doc/recordmodel.xml b/doc/recordmodel.xml index efd69da..29072a9 100644 --- a/doc/recordmodel.xml +++ b/doc/recordmodel.xml @@ -1,5 +1,5 @@ - + The Record Model @@ -477,11 +477,12 @@ - begin type [parameter ... ] + begin type [parameter ... ] Begin a new - data element. The type is one of the following: + data element. The type is one of + the following: @@ -492,7 +493,7 @@ name of the schema that describes the structure of the record, eg. gils or wais (see below). The begin record call should precede - any other use of the begin statement. + any other use of the begin statement. @@ -512,7 +513,7 @@ Begin a new node in a variant tree. The parameters are - class type value. + class type value. @@ -521,7 +522,7 @@ - data + data parameter Create a data element. The concatenated arguments make @@ -530,28 +531,41 @@ the layout (whitespace) of the data should be retained for transmission. The option -element - tag wraps the data up in - the tag. + tag wraps the data up in + the tag. The use of the -element option is equivalent to - preceding the command with a begin - element command, and following - it with the end command. + preceding the command with a begin + element command, and following + it with the end command. - end [type] + end [type] Close a tagged element. If no parameter is given, the last element on the stack is terminated. The first parameter, if any, is a type name, similar - to the begin statement. - For the element type, a tag + to the begin statement. + For the element type, a tag name can be provided to terminate a specific tag. + + + unread no + + + Move the input pointer to the offset of first character that + match rule given by no. + The first rule from left-to-right is numbered zero, + the second rule is named 1 and so on. + + + + @@ -571,23 +585,21 @@ /^Subject:/ BODY /$/ { data -element title $1 } /^Date:/ BODY /$/ { data -element lastModified $1 } /\n\n/ BODY END { - begin element bodyOfDisplay - begin variant body iana "text/plain" - data -text $1 - end record + begin element bodyOfDisplay + begin variant body iana "text/plain" + data -text $1 + end record } - If Zebra is compiled with support for Tcl (Tool Command Language) - enabled, the statements described above are supplemented with a complete + If Zebra is compiled with support for Tcl enabled, the statements + described above are supplemented with a complete scripting environment, including control structures (conditional expressions and loop constructs), and powerful string manipulation - mechanisms for modifying the elements of a record. Tcl is a popular - scripting environment, with several tutorials available both online - and in hardcopy. + mechanisms for modifying the elements of a record. -- 1.7.10.4