Next: , Previous: , Up: syslib   [Index]


12.11 Low level character operations

The arguments ch to these operations must be characters, the arguments fx must be fixnums in the range [0, #x10FFFF] but not in the range [#xD800, #xDFFF]. The following bindings are exported by the library (vicare system $chars).

Comparison

Unsafe Operation: $char= ch1 ch2

Evaluate to true if the operands are equal.

Unsafe Operation: $char!= ch1 ch2

The arguments must be characters. Return #t if the arguments are different; otherwise return #f.

Unsafe Operation: $char< ch1 ch2

Evaluate to true if the ch1 is less than ch2.

Unsafe Operation: $char<= ch1 ch2

Evaluate to true if the ch1 is less than or equal to ch2.

Unsafe Operation: $char> ch1 ch2

Evaluate to true if the ch1 is greater than ch2.

Unsafe Operation: $char>= ch1 ch2

Evaluate to true if the ch1 is greater than or equal to ch2.

Function: $chmin ch1 ch2
Function: $chmax ch1 ch2

Return the minimum or maximum character among the arguments.

Conversion

Unsafe Operation: $fixnum->char fx

Return a new character value whose code point equals fx.

Unsafe Operation: $char->fixnum ch

Return a fixnum representing the code point of the operand.