UCS-2 character routines
[UCS-2 Character/String API]
UCS-2 character routines provide the utility to classify characters and convert from upper and lower cases.
More...Functions | |
UCS2API int | ucs2issurrogate (ucs2char_t c) |
Test whether a USC-2 character is a surrogate-pair character in UTF-16. | |
UCS2API int | ucs2isspace (ucs2char_t c) |
Test whether a USC-2 character is a whitespace character. | |
UCS2API int | ucs2isdigit (ucs2char_t c) |
Test whether a USC-2 character is a numeric character. | |
UCS2API ucs2char_t | ucs2lower (ucs2char_t c) |
Convert a UCS-2 character to lower case. | |
UCS2API ucs2char_t | ucs2upper (ucs2char_t c) |
Convert a UCS-2 character to upper case. |
Detailed Description
UCS-2 character routines provide the utility to classify characters and convert from upper and lower cases.
Function Documentation
UCS2API int ucs2isdigit | ( | ucs2char_t | c | ) |
Test whether a USC-2 character is a numeric character.
- Parameters:
-
c The UCS-2 character to be tested.
- Return values:
-
int Non-zero value if the test is true, zero otherwise.
UCS2API int ucs2isspace | ( | ucs2char_t | c | ) |
Test whether a USC-2 character is a whitespace character.
- Parameters:
-
c The UCS-2 character to be tested.
- Return values:
-
int Non-zero value if the test is true, zero otherwise.
UCS2API int ucs2issurrogate | ( | ucs2char_t | c | ) |
Test whether a USC-2 character is a surrogate-pair character in UTF-16.
- Parameters:
-
c The UCS-2 character to be tested.
- Return values:
-
int Non-zero value if the test is true, zero otherwise.
UCS2API ucs2char_t ucs2lower | ( | ucs2char_t | c | ) |
Convert a UCS-2 character to lower case.
- Parameters:
-
c The UCS-2 character to be coverted.
- Return values:
-
ucs2char_t The resultant UCS-2 character.
UCS2API ucs2char_t ucs2upper | ( | ucs2char_t | c | ) |
Convert a UCS-2 character to upper case.
- Parameters:
-
c The UCS-2 character to be coverted.
- Return values:
-
ucs2char_t The resultant UCS-2 character.