Module description
- chr -- Char Data Type
-
The chr module implements words for checking ranges of characters and for
converting characters.
ASCII constants
- chr.nul ( -- char )
- the null character
- chr.soh ( -- char )
- the soh character
- chr.stx ( -- char )
- the stx character
- chr.etx ( -- char )
- the etx character
- chr.eot ( -- char )
- the eot character
- chr.enq ( -- char )
- the enq character
- chr.ack ( -- char )
- the ack character
- chr.bel ( -- char )
- the bel character
- chr.bs ( -- char )
- the backspace character
- chr.ht ( -- char )
- the horz. tab character
- chr.lf ( -- char )
- the line feed character
- chr.vt ( -- char )
- the vert. tab character
- chr.ff ( -- char )
- the formfeed character
- chr.cr ( -- char )
- the carriage return character
- chr.sm ( -- char )
- the sm character
- chr.si ( -- char )
- the si character
- chr.dle ( -- char )
- the dle character
- chr.dc1 ( -- char )
- the dc1 character
- chr.dc2 ( -- char )
- the dc2 character
- chr.dc3 ( -- char )
- the dc3 character
- chr.dc4 ( -- char )
- the dc4 character
- chr.nak ( -- char )
- the nak character
- chr.syn ( -- char )
- the syn character
- chr.etb ( -- char )
- the etc character
- chr.can ( -- char )
- the cancel character
- chr.em ( -- char )
- the em character
- chr.sub ( -- char )
- the sub character
- chr.esc ( -- char )
- the escape character
- chr.fs ( -- char )
- the fs character
- chr.gs ( -- char )
- the gs character
- chr.rs ( -- char )
- the rs character
- chr.us ( -- char )
- the us character
- chr.sp ( -- char )
- the space character
- chr.del ( -- char )
- the delete character
Character class checking words
- chr-range? ( char1 char2 char3 -- flag )
- Check if char1 is in the range [char2..char3]
- chr-lower? ( char -- flag )
- Check for a lowercase alphabetic character
- chr-upper? ( char -- flag )
- Check for an uppercase alphabetic character
- chr-alpha? ( char -- flag )
- Check for an alphabetic character
- chr-digit? ( char -- flag )
- Check for a decimal digit character
- chr-alnum? ( char -- flag )
- Check for an alphanumeric character
- chr-ascii? ( char -- flag )
- Check for an ascii character
- chr-blank? ( char -- flag )
- Check for a blank character, space or tab
- chr-cntrl? ( char -- flag )
- Check for a control character, 0 till 31
- chr-graph? ( char -- flag )
- Check for a printable character except space
- chr-print? ( char -- flag )
- Check for a printable character including space
- chr-punct? ( char -- flag )
- Check for a printable character, but not a space or alphanumeric character
- chr-space? ( char -- flag )
- Check for a white-space: space, lf, vt, ff, cr
- chr-hexdigit? ( char -- flag )
- Check for a hexadecimal character
- chr-octdigit? ( char -- flag )
- Check for an octal character
- chr-string? ( c-addr u char -- flag )
- Check if the character is in the string
Character conversion words
- chr-upper ( char1 -- char2 )
- Convert char1 to uppercase
- chr-lower ( char1 -- char2 )
- Convert char1 to lowercase
- chr-base ( char -- false | u true )
- Convert the character to a digit according the current base
Generated by fsdocgen 0.1.0