| Start |
|---|
| Introduction The header All of these functions take one parameter, an The names of the classifying functions are prefixed with 'is'. Each returns an integer non-zero value (TRUE) if the character passed to it satisfies the related condition. If the condition is not satisfied then the function returns a zero value (FALSE). These classifying functions operate as shown, assuming the default C locale: There are two conversion functions. These are named using the prefix 'to'. These functions take the same argument as those above. However the return value is not a simple zero or non-zero but the passed argument changed in some manner. These conversion functions operate as shown, assuming the default C locale: The below information is quoted from cplusplus.com (opens new window) mapping how the original 127-character ASCII set is considered by each of the classifying type functions (a • indicates that the function returns non-zero for that character) |ASCII values|characters|iscntrl|isblank|isspace|isupper|islower|isalpha|isdigit|isxdigit|isalnum|ispunct|isgraph|isprint |---|---|---|---|---|---|---|---|---|--- |0x00 .. 0x08|NUL, (other control codes)|•||||||||||| |0x09|tab ('\t')|•|•|•||||||||| |0x0A .. 0x0D|(white-space control codes: '\f','\v','\n','\r')|•||•||||||||| |0x0E .. 0x1F|(other control codes)|•||||||||||| |0x20|space (' ')||•|•|||||||||• |0x21 .. 0x2F|!"#$%&'()*+,-./||||||||||•|•|• |0x30 .. 0x39|0123456789|||||||•|•|•||•|• |0x3a .. 0x40|:;<=>?@||||||||||•|•|• |0x41 .. 0x46|ABCDEF||||•||•||•|•||•|• |0x47 .. 0x5A|GHIJKLMNOPQRSTUVWXYZ||||•||•|||•||•|• |0x5B .. 0x60|[]^_`||||||||||•|•|• |0x61 .. 0x66|abcdef|||||•|•||•|•||•|• |0x67 .. 0x7A|ghijklmnopqrstuvwxyz|||||•|•|||•||•|• |0x7B .. 0x7E|{}~bar||||||||||•|•|• |0x7F|(DEL)|•||||||||||| |
Classifying characters read from a stream The
|
Classifying characters from a string The
|
Read Article
https://develop.horje.com/learn/1434/reference