chr - Char Data Type

Module Description

The chr module implements words for checking ranges of characters and for converting characters.

Module Words

ASCII constants

chr.nul ( - c )
the null character

chr.soh ( - c )
the soh character

chr.stx ( - c )
the stx character

chr.etx ( - c )
the etx character

chr.eot ( - c )
the eot character

chr.enq ( - c )
the enq character

chr.ack ( - c )
the ack character

chr.bel ( - c )
the bel character

chr.bs ( - c )
the backspace character

chr.ht ( - c )
the horz. tab character

chr.lf ( - c )
the line feed character

chr.vt ( - c )
the vert. tab character

chr.ff ( - c )
the formfeed character

chr.cr ( - c )
the carriage return character

chr.sm ( - c )
the sm character

chr.si ( - c )
the si character

chr.dle ( - c )
the dle character

chr.dc1 ( - c )
the dc1 character

chr.dc2 ( - c )
the dc2 character

chr.dc3 ( - c )
the dc3 character

chr.dc4 ( - c )
the dc4 character

chr.nak ( - c )
the nak character

chr.syn ( - c )
the syn character

chr.etb ( - c )
the etc character

chr.can ( - c )
the cancel character

chr.em ( - c )
the em character

chr.sub ( - c )
the sub character

chr.esc ( - c )
the escape character

chr.fs ( - c )
the fs character

chr.gs ( - c )
the gs character

chr.rs ( - c )
the rs character

chr.us ( - c )
the us character

chr.sp ( - c )
the space character

chr.del ( - c )
the delete character

Character class checking words

chr-range? ( c c:min c:max - f )
Check if character is in an including range

chr-lower? ( c - f )
Check for a lowercase alphabetic character

chr-upper? ( c - f )
Check for an uppercase alphabetic character

chr-alpha? ( c - f )
Check for an alphabetic character

chr-digit? ( c - f )
Check for a decimal digit

chr-alnum? ( c - f )
Check for an alphanumeric character

chr-ascii? ( c - f )
Check for an ascii character

chr-blank? ( c - f )
Check for a blank character, space or tab

chr-cntrl? ( c - f )
Check for a control character, 0 till 31

chr-graph? ( c - f )
Check for a printable character except space

chr-print? ( c - f )
Check for a printable character including space

chr-punct? ( c - f )
Check for a printable character, but not a space or alphanumeric character

chr-space? ( c - f )
Check for a white-space: space, lf, vt, ff, cr

chr-hexdigit? ( c - f )
Check for a hexadecimal character

chr-octdigit? ( c - f )
Check for an octal character

chr-string? ( c-addr u c - f )
Check if the characters is in the string

Character conversion words

chr-upper ( c - c )
Convert character to uppercase

chr-lower ( c - c )
Convert character to lowercase

chr-base ( c - false | u true )
Convert a character within the current base


generated 09-Jan-2007 by ofcfrth-0.2.0