PublicShow sourcectypes.pl -- Character code classification

This file implements the functionality of the corresponding Quintus library based on SWI-Prolog's code_type/2 predicate. Please check the documentation of this predicate to find the definitions of the classes.

See also
- code_type/2
- char_type/2
Sourceis_paren(?Open, ?Close) is semidet
True if Open is the open-parenthesis of Close.
Sourceto_lower(+U, -L) is det
Downcase a character code. If U is the character code of an uppercase character, unify L with the character code of the lowercase version. Else unify L with U.
Sourceto_upper(+L, -U) is det
Upcase a character code. If L is the character code of a lowercase character, unify L with the character code of the uppercase version. Else unify U with L.
Sourceupper_lower(?U, ?L) is det
True when U is the character code of an uppercase character and L is the character code of the corresponding lowercase character.
Sourceis_digit(+C, +Base, -Weight) is det
is_digit(-C, +Base, +Weight) is det
Succeeds if `C' is a digit using `Base' as base and `Weight' represents its value. Only the base-10 case is handled by code_type.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

Sourceis_period(Arg1)
Sourceis_print(Arg1)
Sourceis_graph(Arg1)
Sourceis_lower(Arg1)
Sourceis_newline(Arg1)
Sourceis_newpage(Arg1)
Sourceis_digit(Arg1)
Sourceis_punct(Arg1)
Sourceis_endfile(Arg1)
Sourceis_ascii(Arg1)
Sourceis_cntrl(Arg1)
Sourceis_csym(Arg1)
Sourceis_csymf(Arg1)
Sourceis_endline(Arg1)
Sourceis_alnum(Arg1)
Sourceis_alpha(Arg1)
Sourceis_quote(Arg1)
Sourceis_space(Arg1)
Sourceis_upper(Arg1)
Sourceis_white(Arg1)