Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nl_ctype(3C) — HP-UX 5.50

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3C)

nl_init(3C)

stdio(3S)

hpnls(5)

langid(5)

NL_CTYPE(3C)  —  HP-UX

NAME

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

SYNOPSIS

#include <nl_ctype.h>

int nl_isalpha (c, langid)
int c; int langid;

. . . 

DESCRIPTION

These routines classify character-coded integer values by table lookup.  Langid is as defined in langid(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, the default NLS environment, ­"n-computer", is used (see langid(5)).

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 nl_init(3C), is recommended.

The nl_ctype(3C) macros call langinit (see nl_init(3C)) to load the NLS environment according to the language specified by langid.

HARDWARE DEPENDENCIES

Series 300, 500
Because nl_init(3C) is not currently supported, continue to use these routines.

AUTHOR

Nl_ctype was developed by the Hewlett-Packard Company. 

SEE ALSO

ctype(3C), nl_init(3C), stdio(3S), hpnls(5), langid(5). 

INTERNATIONAL SUPPORT

8-bit data. 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

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