chs - Character set module

Module Description

The chs module implements words for using character sets. It supports the POSIX classes used in regular expressions.

Module Words

Character Set Structure

chs% ( - n )
Get the required space for the chs data structure

Set creation, initialisation and destruction

chs-init ( w:chs - )
Initialise the character set

chs-create ( "name" - )
Create a named character set in the dictionary

chs-new ( - w:chs )
Create a new character set on the heap

chs-free ( w:chs - )
Free the character set from the heap

Sets words

chs^move ( w:chs2 w:chs1 - )
Move chs2 in chs1

Set words

chs-set ( w:chs - )
Set all characters in the set

chs-reset ( w:chs - )
Reset all characters in the set

chs-invert ( w:chs - )
Invert all characters in the set

Char words

chs-set-char ( c w:chs - )
Set the character in the set

chs-reset-char ( c w:chs - )
Reset the character in the set

Character range words

chs-set-chars ( c:max c:min w:chs - )
Set a range of characters in the set

chs-reset-chars ( c:max c:min w:chs - )
Reset a range of characters in the set

String words

chs-set-string ( c-addr u w:chs - )
Set the characters in the string in the set

chs-reset-string ( c-addr u w:chs - )
Reset the characters in the string in the set

POSIX classes

chs-set-upper ( w:chs - )
Set the upper class in the set

chs-reset-upper ( w:chs - )
Reset the upper class in the set

chs-set-lower ( w:chs - )
Set the lower class in the set

chs-reset-lower ( w:chs - )
Reset the lower class in the set

chs-set-alpha ( w:chs - )
Set the alpha class in the set

chs-reset-alpha ( w:chs - )
Reset the alpha class in the set

chs-set-digit ( w:chs - )
Set the digit class in the set

chs-reset-digit ( w:chs - )
Reset the digit class in the set

chs-set-alnum ( w:chs - )
Set the alnum class in the set

chs-reset-alnum ( w:chs - )
Reset the alnum class in the set

chs-set-xdigit ( w:chs - )
Set the xdigit class in the set

chs-reset-xdigit ( w:chs - )
Reset the xdigit class in the set

chs-set-punct ( w:chs - )
Set the punct class in the set

chs-reset-punct ( w:chs - )
Reset the punct class in the set

chs-set-blank ( w:chs - )
Set the blank class in the set

chs-reset-blank ( w:chs - )
Reset the blank class in the set

chs-set-space ( w:chs - )
Set the space class in the set

chs-reset-space ( w:chs - )
Reset the space class in the set

chs-set-cntrl ( w:chs - )
Set the cntrl class in the set

chs-reset-cntrl ( w:chs - )
Reset the cntrl class in the set

chs-set-graph ( w:chs - )
Set the graph class in the set

chs-reset-graph ( w:chs - )
Reset the graph class in the set

chs-set-print ( w:chs - )
Set the print class in the set

chs-reset-print ( w:chs - )
Reset the print class in the set

chs-set-word ( w:chs - )
Set the word class in the set

chs-reset-word ( w:chs - )
Reset the word class in the set

Char check word

chs-char? ( c w:chs - f )
Check if character is in the set

Special words

chs-execute ( .. xt w:chs - .. )
Execute xt for every character in the set

Inspection

chs-dump ( w:chs - )
Dump the chs state


generated 09-Jan-2007 by ofcfrth-0.2.0