This struct provides a namespace for a suite of pure procedures operating on the fundamental type char.

Synopsis

Declared in <bdlb_chartype.h>

struct CharType;

Enums

Name

Description

Unnamed enum

Constants for this component.

Category

Set of character categories supported by this component.

Static Member Functions

Name

Description

isAll

Return whether character is in the ALL category.

isAlnum

Return whether character is alphanumeric.

isAlpha

Return whether character is alphabetic.

isAlund

Return whether character is alphabetic or underscore.

isAscii

Return whether character is a 7‐bit ASCII character.

isCategory

Return whether character belongs to category.

isCntrl

Return whether character is a control character.

isDigit

Return whether character is a decimal digit.

isGraph

Return whether character is printable, excluding space.

isIdent

Return whether character is a C‐style identifier character.

isLower

Return whether character is a lowercase letter.

isNone

Return whether character is in the NONE category.

isOdigit

Return whether character is an octal digit.

isPrint

Return whether character is printable, including space.

isPunct

Return whether character is punctuation.

isSpace

Return whether character is a whitespace character.

isUpper

Return whether character is an uppercase letter.

isXdigit

Return whether character is a hexadecimal digit.

numAll

Return the number of characters in the ALL category.

numAlnum

Return the number of characters in the category ALNUM (i.e., [0‐9A‐Za‐Z]).

numAlpha

Return the number of characters in the category ALPHA (i.e., [A‐Za‐z]).

numAlund

Return the number of characters in the category ALUND (i.e., [ALPHA|]).

numAscii

Return the number of characters in the category ASCII (i.e., [0‐177]).

numCategory

Return the number of characters in the specified category.

numCntrl

Return the number of characters in the category CNTRL (i.e., [1‐37] and 177).

numDigit

Return the number of characters in the category DIGIT (i.e., [0‐9]).

numGraph

Return the number of characters in the category GRAPH (i.e., any printable character except SPACE), and false otherwise.

numIdent

Return the number of characters in the category IDENT (i.e., [ALNUM|]).

numLower

Return the number of characters in the category LOWER (i.e., [a‐z]).

numNone

Return the number of characters in the NONE category.

numOdigit

Return the number of characters in the category ODIGIT (i.e., [0‐7]).

numPrint

Return the number of characters in the category PRINT (i.e., any printable character including SPACE).

numPunct

Return the number of characters in the category PUNCT (i.e., any printable character other than SPACE or ALNUM).

numSpace

Return the number of characters in the category SPACE (i.e., [space|tab|CR|NL|VT|FF]).

numUpper

Return the number of characters in the category UPPER (i.e., [A‐Z]).

numXdigit

Return the number of characters in the category XDIGIT (i.e., [0‐9A‐Fa‐f]).

stringAll

Return all ALL characters as a null‐terminated string.

stringAlnum

Return a null‐terminated string consisting of all characters in the category ALNUM (i.e., [0‐9A‐Za‐Z]), ordered by increasing character codes.

stringAlpha

Return a null‐terminated string consisting of all characters in the category ALPHA (i.e., [A‐Za‐z]), ordered by increasing character codes.

stringAlund

Return a null‐terminated string consisting of all characters in the category ALUND (i.e., [ALPHA|]), ordered by increasing character codes.

stringAscii

Return all ASCII characters as a null‐terminated string.

stringCategory

Return all characters in category as a null‐terminated string.

stringCntrl

Return all CNTRL characters as a null‐terminated string.

stringDigit

Return a null‐terminated string consisting of all characters in the category DIGIT (i.e., [0‐9]), ordered by increasing character codes.

stringGraph

Return all GRAPH characters as a null‐terminated string.

stringIdent

Return a null‐terminated string consisting of all characters in the category IDENT (i.e., [ALNUM|]), ordered by increasing character codes.

stringLower

Return a null‐terminated string consisting of all characters in the category LOWER (i.e., [a‐z]), ordered by increasing character codes.

stringNone

Return a null‐terminated string consisting of all characters in the category NONE. Note that this string is empty.

stringOdigit

Return a null‐terminated string consisting of all characters in the category DIGIT (i.e., [0‐7]), ordered by increasing character codes.

stringPrint

Return all PRINT characters as a null‐terminated string.

stringPunct

Return all PUNCT characters as a null‐terminated string.

stringSpace

Return a null‐terminated string consisting of all characters in the category SPACE (i.e., [space|tab|CR|NL|VT|FF]), ordered by increasing character codes.

stringUpper

Return a null‐terminated string consisting of all characters in the category UPPER (i.e., [A‐Z]), ordered by increasing character codes.

stringXdigit

Return a null‐terminated string consisting of all characters in the category XDIGIT (i.e., [0‐9A‐Fa‐f]), ordered by increasing character codes.

toAscii

Return the enumerator name for category as a C string.

toLower

Return the lowercase equivalent of input.

toUpper

Return the uppercase equivalent of input.

Created with MrDocs