Localization: 5.4 Lexical Functions: Character Categories

Up: GEOS SDK TechDocs | Up | Prev: 5.3 Casing | Next: 5.5 Lexical Values
 isupper(), LocalIsUpper(),  islower(), LocalIsLower(), isalpha(),  LocalIsAlpha(),  ispunct(), LocalIsPunctuation(), isspace(),  LocalIsSpace(), isprint(),  LocalIsPrintable(), 
iscntrl(),  LocalIsControl(), isdigit(),  LocalIsDigit(), isxdigit(),  LocalIsHexDigit(),  isgraph(), LocalIsGraphic(), 
isalnum(),  LocalIsAlphaNumeric(),  LocalIsSymbol()

GEOS assembly provides some commonly used character predicates. C users use the standard C functions isupper() , islower() , etc. to access these predicates. Passed a character, each of these functions tells whether that character falls into a certain category. LocalIsUpper() returns true if the character is an uppercase alphabetic character; LocalIsLower() returns true if the character is lower case. LocalIsAlpha() approves any alphabetic character. LocalIsPunctuation() checks for punctuation marks. LocalIsSpace() looks for white space (including spaces, tabs, and carriage returns), and LocalIsSymbol() catches just about everything else. LocalIsControl() detects control characters (e.g. Control-A). LocalIsDigit() returns true for decimal digits. LocalIsHexDigit() approves hexadecimal digits (including the characters a-f, A-F). LocalIsAlphaNumeric() detects alphabetic characters and decimal digits. LocalIsPrintable() returns true when passed a character which takes up a space when printed, corresponding to the standard C function isprint() . LocalIsGraphic() checks for displayable characters, in the manner of the standard C function isgraphic() .


Up: GEOS SDK TechDocs | Up | Prev: 5.3 Casing | Next: 5.5 Lexical Values