Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

localedef(1)

setlocale(3C)

stdio(3S)

ascii(5)

attributes(5)

iswalpha(3C)

NAME

iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswspace, iswpunct, iswprint, iswcntrl, iswascii, iswgraph, isphonogram, isideogram, isenglish, isnumber, isspecial  − wide-character code classification functions

SYNOPSIS

#include <wchar.h>

int iswalpha(wint_t wc);

DESCRIPTION

These functions test whether wc is a wide-character code representing a character of a particular class defined in the LC_CTYPE category of the current locale. 

In all cases, wc is a wint_t, the value of which must be a wide-character code corresponding to a valid character in the current locale or must equal the value of the macro WEOF.  If the argument has any other values, the behavior is undefined. 

iswalpha(wc) tests whether wc is a wide-character code representing a character of class "alpha" in the program’s current locale. 

iswupper(wc) tests whether wc is a wide-character code representing a character of class "upper" in the program’s current locale. 

iswlower(wc) tests whether wc is a wide-character code representing a character of class "lower" in the program’s current locale. 

iswdigit(wc) tests whether wc is a wide-character code representing a character of class "digit" in the program’s current locale. 

iswxdigit(wc) tests whether wc is a wide-character code representing a character of class "xdigit" in the program’s current locale. 

iswalnum(wc) tests whether wc is a wide-character code representing a character of class "alpha" or "digit" in the program’s current locale. 

iswspace(wc) tests whether wc is a wide-character code representing a character of class "space" in the program’s current locale. 

iswpunct(wc) tests whether wc is a wide-character code representing a character of class "punct" in the program’s current locale. 

iswprint(wc) tests whether wc is a wide-character code representing a character of class "print" in the program’s current locale. 

iswgraph(wc) tests whether wc is a wide-character code representing a character of class "graph" in the program’s current locale. 

iswcntrl(wc) tests whether wc is a wide-character code representing a character of class "cntrl" in the program’s current locale. 

iswascii(wc) tests whether wc is a wide-character code representing an ASCII character. 

isphonogram(wc) tests whether wc is a wide-character code representing a phonetic language character, excluding ASCII characters. 

isideogram(wc) tests whether wc is a wide-character code representing an ideographic language character, excluding ASCII characters. 

isenglish(wc) tests whether wc is a wide-character code representing an English language character, excluding ASCII characters. 

isnumber(wc) tests whether wc is a wide-character code representing digit [0−9], excluding ASCII characters. 

isspecial(wc) tests whether wc is a wide-character code representing a special language character, excluding ASCII characters. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe with exceptions
CSI Enabled

SEE ALSO

localedef(1), setlocale(3C), stdio(3S), ascii(5), attributes(5)

SunOS 5.6  —  Last change: 20 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026