Next: , Previous: , Up: args predefined   [Index]


8.5.11 Validating characters

The following bindings are exported by the library (vicare arguments validation).

Validation Clause: char obj
Validation Clause: char/false obj

Succeed if obj is a character. The second clause also accepts #f.

Validation Clause: char-in-ascii-range obj
Validation Clause: char-in-ascii-range/false obj

Succeed if obj is a character and its Unicode code point is in the range [0, 127]. The second form accepts also #f as value.