wctype.h

Overview

Related Modules:

UTILS

Description:

Provides functions to detect, translate, and map wide characters.

Wide characters are classified into the following types: alnum, alpha, upper, lower, digit, xdigit, graph, cntrl, punct, and space. You can use these functions to detect the type of wide characters and translate the type for the current locale LC_CTYPE or a specified locale. You can use these functions to convert the case of wide characters, map the wide characters, and obtain the mapping descriptor for conversion.

Since:

1.0

Version:

1.0

Summary

Functions

Function Name

Description

iswalnum (wint_t wc)

int 

Checks whether a wide character is a letter or digit.

iswalpha (wint_t wc)

int 

Checks whether a wide character is a letter.

iswblank (wint_t wc)

int 

Checks whether a wide character is a space or tab character (\t).

iswcntrl (wint_t wc)

int 

Checks whether a wide character is a control character.

iswdigit (wint_t wc)

int 

Checks whether a wide character is a decimal digit.

iswgraph (wint_t wc)

int 

Checks whether a wide character is visible.

iswlower (wint_t wc)

int 

Checks whether a wide character is a lowercase letter.

iswprint (wint_t wc)

int 

Checks whether a wide character is printable.

iswpunct (wint_t wc)

int 

Checks whether a wide character is a punctuation mark.

iswupper (wint_t wc)

int 

Checks whether a wide character is an uppercase letter.

iswxdigit (wint_t wc)

int 

Checks whether a wide character is a hexadecimal digit.

iswctype (wint_t wc, wctype_t desc)

int 

Checks whether the character specified by wc belongs to the desc class.

towctrans (wint_t wc, wctrans_t desc)

wint_t 

Translates the type of a wide character based on the conversion mapping relationship.

towlower (wint_t wc)

wint_t 

Converts an uppercase wide character to lowercase.

towupper (wint_t wc)

wint_t 

Converts a lowercase wide character to uppercase.

wctrans (const char name)

wctrans_t 

Determines a mapping which can map a wide character to another wide character.

wctype (const char name)

wctype_t 

Checks whether a wide character type exists in the LC_CTYPE locale.

iswalnum_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is a letter or digit for the specified locale.

iswalpha_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is alphabetic for the specified locale.

iswblank_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is a blank or \t character for the specified locale.

iswcntrl_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is a control character for the specified locale.

iswdigit_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is a decimal digit for the specified locale.

iswgraph_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is visible for the specified locale.

iswlower_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is in lowercase for the specified locale.

iswprint_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is printable for the specified locale.

iswpunct_l (wint_t wc, locale_t locale)

int 

Checks whether wc is a punctuation wide character for the specified locale.

iswspace (wint_t wc)

int 

Checks whether a wide character belongs to the wide-character class space.

iswspace_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character belongs to the wide-character class space for the specified locale.

iswupper_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is in uppercase for the specified locale.

iswxdigit_l (wint_t wc, locale_t locale)

int 

Checks whether a wide character is a hexadecimal digit for the specified locale.

iswctype_l (wint_t wc, wctype_t desc, locale_t locale)

int 

Checks whether the character specified by wc belongs to the desc class for the specified locale.

towlower_l (wint_t wc, locale_t locale)

wint_t 

Converts an uppercase wide character to lowercase for the specified locale.

towupper_l (wint_t wc, locale_t locale)

wint_t 

Converts a lowercase wide character to uppercase for the specified locale.

towctrans_l (wint_t wc, wctype_t desc, locale_t locale)

wint_t 

Translates the type of a wide character based on the translation mapping relationship for the specified locale.

wctrans_l (const char name, locale_t locale)

wctrans_t 

Determines a mapping which can map a wide character to another wide character.

wctype_l (const char name, locale_t locale)

wctype_t 

Checks whether a wide character type exists for the specified locale.