Mikroelektronika MIKROE-724 データシート

ページ / 726
658
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
isdigit
Prototype
sub function isdigit(dim character as byte) as word
Description Function returns 0xFF if the 
character
 is a digit (0-9), otherwise returns zero.
Example
res = isdigit(“o”)  ‘ returns 0xFF
res = isdigit(“1”)  ‘ returns 0
isgraph
Prototype
sub function isgraph(dim character as byte) as word
Description Function returns 0xFF if the 
character
 is a printable, excluding the space (decimal 32), otherwise 
returns zero.
Example
res = isgraph(“o”)  ‘ returns 0xFF
res = isgraph(“ “)  ‘ returns 0
islower
Prototype
sub function islower(dim character as byte) as word
Description Function returns 0xFF if the 
character
 is a lowercase letter (a-z), otherwise returns zero.
Example
res = islower(“0”)  ‘ returns 0xFF
res = islower(“A”)  ‘ returns 0
ispunct
Prototype
sub function ispunct(dim character as byte) as 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 = ispunct(“.”)  ‘ returns 0xFF
res = ispunct(“1”)  ‘ returns 0
isspace
Prototype
sub function isspace(dim character as byte) as 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