Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nl_iscntrl(3C) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3C)

nl_init(3C)

hpnls(5)

lang(5)

nl_ctype(3C)

NAME

nl_isalpha(), nl_isupper(), nl_islower(), nl_isdigit(), nl_isxdigit(), nl_isalnum(), nl_isspace(), nl_ispunct(), nl_isprint(), nl_isgraph(), nl_iscntrl() − classify characters for use with NLS

SYNOPSIS

#include <nl_ctype.h>

int nl_isalpha(int c, int langid);

...

DESCRIPTION

These routines classify character-coded integer values by table lookup.  langid corresponds to a particular NLS environment (see lang(5)). Each is a predicate returning nonzero for true, zero for false. All are defined for the range −1 to 255. If langid is not defined, or if the NLS environment corresponding to langid is not available, n-computer, the default NLS environment associated with langinit(), is used (see nl_init(3C)).

nl_isalpha() c is a letter. 

nl_isupper() c is an uppercase letter. 

nl_islower() c is a lowercase letter. 

nl_isdigit() c is a decimal digit (in ASCII : characters [0-9]). 

nl_isxdigit() c is a hexadecimal digit (in ASCII :  characters [0-9], [A-F] or [a-f]). 

nl_isalnum() c is an alphanumeric (letters or digits). 

nl_isspace() c is a character that creates “white space” in displayed text (in ASCII :  space, tab, carriage return, new-line, vertical tab, and form-feed). 

nl_ispunct() c is a punctuation character (in ASCII :  any printing character except the space character (040), digits, letters.)

nl_isprint() c is a printing character. 

nl_isgraph() c is a visible character (in ASCII :  printing characters, excluding the space character (040)). 

nl_iscntrl() c is a control character (in ASCII :  character codes less than 040 and the delete character (0177)). 

DIAGNOSTICS

If the argument to any of these is not in the domain of the function, the result is undefined. 

WARNINGS

These macros are provided for historical reasons only.  Use of the macros in ctype(3C), which now provide for international support via setlocale(3C), is recommended.

Macros described in this manual entry call langinit() to load the NLS environment according to the language specified by langid.

AUTHOR

nl_ctype() was developed by the HP. 

SEE ALSO

ctype(3C), nl_init(3C), hpnls(5), lang(5). 

EXTERNAL INFLUENCES

Locale

The LC_CTYPE category determines the classification of character type. 

International Code Set Support

Single-byte character code sets are supported. 

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

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