liveBook · Manning

Character classifier

A character classifier is a C library function or macro that tests whether a character value belongs to a specified character class.

How 2 Manning books explain it

Modern C, Third Edition

A character classifier function is a C library interface that tests whether a character belongs to a specified character class.

How it is used
Supports encoding-independent character classification during string processing and conversion.
How deep it goes
Defines the classifier family, int-based interface, class meanings, and locale extensions without detailing implementation internals.
Examples
Uses decimal, hexadecimal, alphabetic, uppercase, whitespace, punctuation, control, graphical, and printable character classes.
What you can do after
Apply it via <ctype.h> to test character classes and branch safely in conversion routines.

Read how Modern C, Third Edition explains character classifier →

Modern C

A character classifier is a C library function or macro that tests whether a character belongs to a specified character class.

How it is used
Supports encoding-independent character testing and numeric-string processing.
How deep it goes
Defines the classifier families and demonstrates their use, but defers broader library-interface details.
Examples
Uses a classifier table and a hexatridecimal conversion function to demonstrate classification before arithmetic.
What you can do after
Apply <ctype.h> predicates to classify characters during portable parsing and conversion.

Read how Modern C explains character classifier →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.