Did you know ... Search Documentation:
Pack ape -- prolog/lexicon/chars.pl
PublicShow source
author
- Kaarel Kaljurand
- Tobias Kuhn
version
- 2009-04-29

Note: SWI has char_type/2 which could be used instead of the predicates defined in this module. But Sicstus does not seem to have anything similar. Note also: char_type/2 does not seem to be good because it does not handle anything beyond ASCII-7.

 is_capitalized(+Token:atom) is semidet
Succeeds if Token starts with an uppercase letter.
Arguments:
Token- is an ACE token
 is_digit(+Code:integer) is semidet
Succeeds if Code corresponds to an ASCII-7 digit symbol.
Arguments:
Code- is a character code
 is_lowercase(+Code:integer) is semidet
Succeeds iff Code corresponds to a lowercase letter.
Arguments:
Code- is a character code

We also test lowercase letters from the upper half of latin1.

 is_uppercase(+Code:integer) is semidet
Succeeds iff Code corresponds to an uppercase letter.
Arguments:
Code- is a character code

We also test uppercase letters from the upper half of latin1.

 is_letter(+Code:integer) is semidet
Succeeds iff Code corresponds to a lower- or uppercase letter.
Arguments:
Code- is a character code
 is_unused(+Code:integer) is semidet
Succeeds iff Code corresponds to an unused character according to http://www.w3.org/MarkUp/html3/latin1.html In addition: tab, linefeed.
Arguments:
Code- is a character code
 is_sentence_end_symbol(?Token:atom) is semidet
Tests if Token is an ACE sentence end symbol.
Arguments:
Token- is a token.

Undocumented predicates

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

 to_lowercase(Arg1, Arg2)