X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FInclude%2Fctype.h;h=d35367f52055b57eb8d5d04cb5242617029e0493;hb=b04aba1773d313e50383b11acc599242c2723986;hp=64bccd5f669470e82826a0748402427f0b859d32;hpb=681cc25c179fdf3462d8366edbc3a886443964c7;p=mirror_edk2.git diff --git a/StdLib/Include/ctype.h b/StdLib/Include/ctype.h index 64bccd5f66..d35367f520 100644 --- a/StdLib/Include/ctype.h +++ b/StdLib/Include/ctype.h @@ -55,6 +55,17 @@ int isalnum(int c); **/ int isalpha(int c); +/** The isblank function tests that a character is a white-space character that results + in a number of space (' ') characters being sent to the output device. In the C locale + this is either ' ' or '\t'. + + @param[in] c The character to be tested. + + @return Returns nonzero (true) if and only if the value of the parameter c + can be classified as specified in the description of the function. +**/ +int isblank(int); + /** The iscntrl function tests for any control character. @param[in] c The character to be tested. @@ -150,25 +161,29 @@ int isupper(int c); **/ int isxdigit(int c); -/** The isblank function tests that a character is a white-space character that results - in a number of space (' ') characters being sent to the output device. In the C locale - this is either ' ' or '\t'. +/** The isascii function tests that a character is one of the 128 7-bit ASCII characters. + This function is not part of the C standard, but is commonly used. @param[in] c The character to be tested. @return Returns nonzero (true) if and only if the value of the parameter c can be classified as specified in the description of the function. **/ -int isblank(int); +int isascii(int c); -/** The isascii function tests that a character is one of the 128 7-bit ASCII characters. +/** Test whether a character is one of the characters used as a separator + between directory elements in a path. + + Characters are '/', '\\' + + This non-standard function is unique to this implementation. @param[in] c The character to be tested. @return Returns nonzero (true) if and only if the value of the parameter c can be classified as specified in the description of the function. **/ -int isascii(int c); +int isDirSep(int c); /** The tolower function converts an uppercase letter to a corresponding lowercase letter. @@ -217,6 +232,7 @@ __END_DECLS #define isspace(c) (__isCClass( (int)c, (_CW))) #define isupper(c) (__isCClass( (int)c, (_CU))) #define isxdigit(c) (__isCClass( (int)c, (_CD | _CX))) + #define isDirSep(c) (__isCClass( (int)c, (_C0))) #define tolower(c) (__toLower((int)c)) #define toupper(c) (__toUpper((int)c)) #endif /* NO_CTYPE_MACROS */