Documentation  |   Table of Contents   |  < Previous   |  Next >   |  Index

7    ctype.h

Palm OS® Protein C/C++ Compiler Language & Library Reference

Palm OS® Developer Suite

The <ctype.h> header defines several functions useful for classifying and converting characters. All of the functions declared in this header are part of the C99 standard.


NOTE: None of the functions in <ctype.h> are internationally safe. They work only for 7-bit ASCII characters. Many of these functions have Palm OS specific equvalents that are internationally safe. These are listed in Table 7.1.

Table 7.1  Functions with internationally safe equivalents

Function

Palm OS specific equivalent

isalnum()

TxtCharIsAlNum()

isalpha()

TxtCharIsAlpha()

iscntrl()

TxtCharIsCntrl()

isdigit()

TxtCharIsDigit()

isgraph()

TxtCharIsGraph()

islower()

TxtCharIsLower()

isprint()

TxtCharIsPrint()

ispunct()

TxtCharIsPunct()

isspace()

TxtCharIsSpace()

isupper()

TxtCharIsUpper()

isxdigit()

TxtCharIsHex()

tolower()

StrToLower() and TxtTransliterate()

toupper()

TxtTransliterate()

For details on the internationally safe functions listed above, see the book Exploring Palm OS: Text and Localization.