Next: , Up: asciis   [Index]


1.10.1 Generic utilities

The following bindings are exported by the library (vicare language-extensions ascii-chars). The identifiers whose name is prefixed with ‘$’ are bound to unsafe operations: they do not validate the arguments and applying them to invalid arguments leads to undefined behaviour.

Function: fixnum-in-ascii-range? obj
Syntax: $fixnum-in-ascii-range? obj

Return #t if obj is a fixnum representing a character in ASCII encoding.

Function: fixnum-in-base10-range? obj
Syntax: $fixnum-in-base10-range? obj

Return #t if obj is a fixnum in the range [0, 9].

Function: fixnum-in-base16-range? obj
Syntax: $fixnum-in-base16-range? obj

Return #t if obj is a fixnum in the range [0, 15].

Function: ascii-upper-case? fx
Function: ascii-lower-case? fx
Function: ascii-title-case? fx
Syntax: $ascii-upper-case? fx
Syntax: $ascii-lower-case? fx
Syntax: $ascii-title-case? fx

Return #t if fx represents an upper case or lower case letter character, otherwise return #f.

Function: ascii-cased? fx
Syntax: $ascii-cased? fx

Return #t if fx represents a letter character, which can be converted to upper or lower case, otherwise return #f.

Function: ascii-alphabetic? fx
Syntax: $ascii-alphabetic? fx

Return #t if fx represents a letter character, otherwise return #f.

Function: ascii-dec-digit? fx
Syntax: $ascii-dec-digit? fx

Return #t if fx represents a decimal digit character, otherwise return #f.

Function: ascii-hex-digit? fx
Syntax: $ascii-hex-digit? fx

Return #t if fx represents a hexadecimal digit character, otherwise return #f.

Function: ascii-alpha-digit? fx
Syntax: $ascii-alpha-digit? fx

Return #t if fx represents a letter or a decimal digit character, otherwise return #f.

Function: ascii-upcase fx
Function: ascii-downcase fx
Function: ascii-titlecase fx
Syntax: $ascii-upcase fx
Syntax: $ascii-downcase fx
Syntax: $ascii-titlecase fx

Return a fixnum representing the upper case or lower case version of fx; return fx itself if it represents an uncased character.


Next: , Up: asciis   [Index]