User manual
mikroPascal PRO for PIC32
MikroElektronika
571
ispunct
isspace
isupper
isxdigit
toupper
tolower
Prototype
function ispunct(character : byte) : word
Description Function returns 0xFF if the character is a punctuation (decimal 32-47, 58-63, 91-96, 123-126),
otherwise returns zero.
Example
res := islower(‘0’); // returns 0xFF
res := islower(‘A’); // returns 0
Prototype
function isspace(character : byte) : word
Description Function returns 0xFF if the character is a white space (space, tab, CR, HT, VT, NL, FF), otherwise
returns zero.
Example
res := isspace(‘ ‘); // returns 0xFF
res := isspace(‘1’); // returns 0
Prototype
function isupper(character : byte) : word
Description Function returns 0xFF if the character is an uppercase letter (A-Z), otherwise returns zero.
Example
res := isupper(‘A’); // returns 0xFF
res := isupper(‘a’); // returns 0
Prototype
function isxdigit(character : byte) : word
Description Function returns 0xFF if the character is a hex digit (0-9, A-F, a-f), otherwise returns zero.
Example
res := isxdigit(‘A’); // returns 0xFF
res := isxdigit(‘P’); // returns 0
Prototype
function toupper(character : byte) : byte
Description If the character is a lowercase letter (a-z), the function returns an uppercase letter. Otherwise, the
function returns an unchanged input parameter.
Example
res := toupper(‘a’); // returns A
res := toupper(‘B’); // returns B
Prototype
function tolower(character : byte) : byte
Description If the character is an uppercase letter (A-Z), function returns a lowercase letter. Otherwise, function
returns an unchanged input parameter.
Example
res := tolower(‘A’); // returns a
res := tolower(‘b’); // returns b