Wednesday, August 31, 2016

C Library Header – wctype

The header <wctype.h> defines set of functions used to classify wide characters by their types or to convert between upper and lower case.

The < wctype.h> header shall define the following macro constant:
WEOF Wide End-of-File

The < wctype.h> header shall define the following function:
Character Classification:
iswalnum checks if a wide character is alphanumeric (C95)
iswalpha checks if a wide character is alphabetic (C95)
iswlower checks if a wide character is an lowercase character (C95)
iswupper checks if a wide character is an uppercase character (C95)
iswdigit checks if a wide character is a digit (C95)
iswxdigit checks if a character is a hexadecimal character (C95)
iswcntrl checks if a wide character is a control character (C95)
iswgraph checks if a wide character is a graphical character (C95)
iswspace checks if a wide character is a space character (C95)
iswblank checks if a wide character is a blank character (C99)
iswprint checks if a wide character is a printing character (C95)
iswpunct checks if a wide character is a punctuation character (C95)
iswctype classifies a wide character according to the specified LC_CTYPE category (C95)
wctype looks up a character classification category in the current C locale (C95)

Character Manipulation:
towlower converts a wide character to lowercase (C95)
towupper converts a wide character to uppercase (C95)
towctrans performs character mapping according to the specified LC_CTYPE mapping category (C95)
wctrans looks up a character mapping category in the current C locale (C95)

The < wctype.h> header shall define the following type:
wchar_t integer type that can hold any valid wide character
wint_t integer type that can hold any valid wide character and at least one more value (C95)
wctrans_t scalar type that holds locale-specific character mapping (C95)
wctype_t scalar type that holds locale-specific character classification (C95)



Related topics:
<tgmath.h>   |   <threads.h>   |   <time.h>   |   <uchar.h>   |   <wchar.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment