protocol
characterp
Character protocol.
logtalk_load(types(loader))
static
Public predicates
is_ascii/1
True if the argument is an ASCII character.
static
is_ascii(Char)
is_ascii(+char)
- zero_or_one
is_alphanumeric/1
True if the argument is an alphanumeric character.
static
is_alphanumeric(Char)
is_alphanumeric(+char)
- zero_or_one
is_alpha/1
True if the argument is a letter or an underscore.
static
is_alpha(Char)
is_alpha(+char)
- zero_or_one
is_letter/1
True if the argument is a letter.
static
is_letter(Char)
is_letter(+char)
- zero_or_one
is_bin_digit/1
True if the argument is a binary digit.
static
is_bin_digit(Char)
is_bin_digit(+char)
- zero_or_one
is_octal_digit/1
True if the argument is an octal digit.
static
is_octal_digit(Char)
is_octal_digit(+char)
- zero_or_one
is_dec_digit/1
True if the argument is a decimal digit.
static
is_dec_digit(Char)
is_dec_digit(+char)
- zero_or_one
is_hex_digit/1
True if the argument is an hexadecimal digit.
static
is_hex_digit(Char)
is_hex_digit(+char)
- zero_or_one
is_lower_case/1
True if the argument is a lower case letter.
static
is_lower_case(Char)
is_lower_case(+char)
- zero_or_one
is_upper_case/1
True if the argument is a upper case letter.
static
is_upper_case(Char)
is_upper_case(+char)
- zero_or_one
is_vowel/1
True if the argument is a vowel.
static
is_vowel(Char)
is_vowel(+char)
- zero_or_one
is_white_space/1
True if the argument is a white space character (a space or a tab) inside a line of characters.
static
is_white_space(Char)
is_white_space(+char)
- zero_or_one
is_layout/1
True if the argument is a layout character.
static
is_layout(Char)
is_layout(+char)
- zero_or_one
is_quote/1
True if the argument is a quote character.
static
is_quote(Char)
is_quote(+char)
- zero_or_one
is_punctuation/1
True if the argument is a sentence punctuation character.
static
is_punctuation(Char)
is_punctuation(+char)
- zero_or_one
is_period/1
True if the argument is a character that ends a sentence.
static
is_period(Char)
is_period(+char)
- zero_or_one
is_control/1
True if the argument is an ASCII control character.
static
is_control(Char)
is_control(+char)
- zero_or_one
is_newline/1
True if the argument is the ASCII newline character.
static
is_newline(Char)
is_newline(+char)
- zero_or_one
is_end_of_line/1
True if the argument is the ASCII end-of-line character (either a carriage return or a line feed).
static
is_end_of_line(Char)
is_end_of_line(+char)
- zero_or_one
parenthesis/2
Recognizes and converts between open and close parenthesis.
static
parenthesis(Char1,Char2)
parenthesis(?char,?char)
- zero_or_more
parenthesis(+char,?char)
- zero_or_one
parenthesis(?char,+char)
- zero_or_one
lower_upper/2
Recognizes and converts between lower and upper case letters.
static
lower_upper(Char1,Char2)
lower_upper(?char,?char)
- zero_or_more
lower_upper(+char,?char)
- zero_or_one
lower_upper(?char,+char)
- zero_or_one
Protected predicates
(none)
Private predicates
(none)
Operators
(none)
See also