Libraries anvil char

namespace char
Set of functions for checking whether given string falls into certain character class. These checks are locale-specific.

Constants

constant COMBINING_SPACING_MARK

constant CONNECTOR_PUNCTUATION

constant CONTROL

constant CURRENCY_SYMBOL

constant DASH_PUNCTUATION

constant DECIMAL_DIGIT_NUMBER

constant ENCLOSING_MARK

constant END_PUNCTUATION

constant FORMAT

constant LETTER_NUMBER

constant LINE_SEPARATOR

constant LOWERCASE_LETTER

constant MATH_SYMBOL

constant MODIFIER_LETTER

constant MODIFIER_SYMBOL

constant NON_SPACING_MARK

constant OTHER_LETTER

constant OTHER_NUMBER

constant OTHER_PUNCTUATION

constant OTHER_SYMBOL

constant PARAGRAPH_SEPARATOR

constant PRIVATE_USE

constant SPACE_SEPARATOR

constant START_PUNCTUATION

constant SURROGATE

constant TITLECASE_LETTER

constant UNASSIGNED

constant UPPERCASE_LETTER


Functions

int getType(string char)
int getType(int charcode)
Returns the characters class of given parameter. Character class is one of the constants declared in this library.

boolean isDigit(string str)
Tests if whole string consists of digits.

boolean isLetter(string str)
Tests if whole string consists of letters.

boolean isLetterOrDigit(string str)
Tests if whole string consists of letters or digits.

boolean isLowerCase(string str)
Tests if whole string consists of lowercase characters.

boolean isSpace(string str)
Tests if whole string consists of unicode space characters.

boolean isUpperCase(string str)
Tests if whole string consists of uppercase characters.