Character Identification Routines - HP 9000 User Manual

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

Identifying Character Traits.
The WPI provides tools to identify the traits of a
character. Non-internationalized versions of these routines have been a part
of the standard C offering for years; however, the enhanced NLS versions can
correctly identify the traits of characters in all supported languages
(If
the
correct environmental initialization has been successful).
All the routines included in this grouping return a non-zero integer if the
indicated condition is satisfied. For more information about these routines refer
to wctype(3C) in the HP- UX Reference
Table 6·7. Character Identification Routines
Routine
Condition
iswalpha( c)
Is a wide alphabetic character.
iswupper( c)
Is a wide uppercase alphabetic character.
iswlower( c)
Is a wide lowercase alphabetic character.
iswdigit(c)
Is a wide decimal digit.
iswxdigit(c)
Is a wide hexadecimal digit.
iswalnum( c)
Is a wide alphanumeric character.
iswspace( c)
Is a tab, new-line, space, or any wide character that creates
"white space" in displayed text.
iswpunct( c)
Is a wide punctuation character.
iswprint( c)
Is a wide printing character.
iswgraph( c)
Is a wide character with a visible representation.
iswcntrl(c)
Is a wide control character.
Developing International Software
6·15
6

Advertisement

Table of Contents
loading

Table of Contents