|Did you know ...||Search Documentation:|
<ctype.h>primitives. The types are sensititve to the active locale, see setlocale/3. Most of the Types are mapped to the Unicode classification functions from
alnumuses iswalnum(). The types
prolog_symbolare based on the locale-independent built-in classification routines that are also used by read/1 and friends.
Note that the mode (-,+) is only efficient if the Type has
a parameter, e.g.,
char_type(C, digit(8)). If Type
is a atomic, the whole unicode range (0..0x1ffff) is generated and
tested against the character classification function.
_). These are valid C and Prolog symbol characters.
_). These are valid first characters for C and Prolog symbols.
char_type(X, digit(6))yields X =
’6'. Useful for parsing numbers.
char_type(a, xdigit(X))yields X =
’10'. Useful for parsing numbers.
graphcharacter that is not a letter or digit.