[#BloombergLP-bdlb-CharType]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::CharType
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a suite of pure procedures operating on the fundamental type `char`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;chartype&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CharType;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/CharType/_04enum.adoc[`Unnamed enum`] 
| Constants for this component&period;
| xref:BloombergLP/bdlb/CharType/Category.adoc[`Category`] 
| Set of character categories supported by this component&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/CharType/isAll.adoc[`isAll`] 
| Return `true` if the specified `character` is in the `ALL` category (i&period;e&period;, `&lsqb;0&hyphen;377&rsqb;`), and `false` otherwise&period; Note that this function always returns `true`, but is provide for completeness&period;
| xref:BloombergLP/bdlb/CharType/isAlnum.adoc[`isAlnum`] 
| Return `true` if the specified `character` is in the `ALNUM` category (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Za&hyphen;Z&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isAlpha.adoc[`isAlpha`] 
| Return `true` if the specified `character` is in the `ALPHA` category (i&period;e&period;, `&lsqb;A&hyphen;Za&hyphen;z&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isAlund.adoc[`isAlund`] 
| Return `true` if the specified `character` is in the `ALUND` category (i&period;e&period;, `&lsqb;ALPHA&verbar;&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isAscii.adoc[`isAscii`] 
| Return `true` if the specified `character` is in the `ASCII` category (i&period;e&period;, `&lsqb;0&hyphen;177&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isCategory.adoc[`isCategory`] 
| Return `true` if the specified `character` is in the specified `category`, and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isCntrl.adoc[`isCntrl`] 
| Return `true` if the specified `character` is in the `CNTRL` category (i&period;e&period;, `&lsqb;1&hyphen;37&rsqb;` and `177`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isDigit.adoc[`isDigit`] 
| Return `true` if the specified `character` is in the `DIGIT` category (i&period;e&period;, `&lsqb;0&hyphen;9&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isGraph.adoc[`isGraph`] 
| Return `true` if the specified `character` is in the `GRAPH` category (i&period;e&period;, any printable character except `SPACE`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isIdent.adoc[`isIdent`] 
| Return `true` if the specified `character` is in the `IDENT` category (i&period;e&period;, `&lsqb;ALNUM&verbar;&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isLower.adoc[`isLower`] 
| Return `true` if the specified `character` is in the `LOWER` category (i&period;e&period;, `&lsqb;a&hyphen;z&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isNone.adoc[`isNone`] 
| Return `true` if the specified `character` is in the `NONE` category (i&period;e&period;, `&lsqb;&rsqb;`), and `false` otherwise&period; Note that this function always returns `false`, but is provided for completeness&period;
| xref:BloombergLP/bdlb/CharType/isOdigit.adoc[`isOdigit`] 
| Return `true` if the specified `character` is in the `ODIGIT` category (i&period;e&period;, `&lsqb;0&hyphen;7&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isPrint.adoc[`isPrint`] 
| Return `true` if the specified `character` is in the `PRINT` category (i&period;e&period;, any printable character including `SPACE`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isPunct.adoc[`isPunct`] 
| Return `true` if the specified `character` is in the `PUNCT` category (i&period;e&period;, any printable character other than `SPACE` or `ALNUM`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isSpace.adoc[`isSpace`] 
| Return `true` if the specified `character` is in the `SPACE` category (i&period;e&period;, `&lsqb;space&verbar;tab&verbar;CR&verbar;NL&verbar;VT&verbar;FF&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isUpper.adoc[`isUpper`] 
| Return `true` if the specified `character` is in the `UPPER` category (i&period;e&period;, `&lsqb;A&hyphen;Z&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/isXdigit.adoc[`isXdigit`] 
| Return `true` if the specified `character` is in the `XDIGIT` category (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Fa&hyphen;f&rsqb;`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/numAll.adoc[`numAll`] 
| Return the number of characters in the category `ALL`&period; Note that the character string returned by the `stringAll` method is of length 255, but the terminating null is part of the set&period;
| xref:BloombergLP/bdlb/CharType/numAlnum.adoc[`numAlnum`] 
| Return the number of characters in the category `ALNUM` (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Za&hyphen;Z&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numAlpha.adoc[`numAlpha`] 
| Return the number of characters in the category `ALPHA` (i&period;e&period;, `&lsqb;A&hyphen;Za&hyphen;z&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numAlund.adoc[`numAlund`] 
| Return the number of characters in the category `ALUND` (i&period;e&period;, `&lsqb;ALPHA&verbar;&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numAscii.adoc[`numAscii`] 
| Return the number of characters in the category `ASCII` (i&period;e&period;, `&lsqb;0&hyphen;177&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numCategory.adoc[`numCategory`] 
| Return the number of characters in the specified `category`&period;
| xref:BloombergLP/bdlb/CharType/numCntrl.adoc[`numCntrl`] 
| Return the number of characters in the category `CNTRL` (i&period;e&period;, `&lsqb;1&hyphen;37&rsqb;` and `177`)&period;
| xref:BloombergLP/bdlb/CharType/numDigit.adoc[`numDigit`] 
| Return the number of characters in the category `DIGIT` (i&period;e&period;, `&lsqb;0&hyphen;9&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numGraph.adoc[`numGraph`] 
| Return the number of characters in the category `GRAPH` (i&period;e&period;, any printable character except `SPACE`), and `false` otherwise&period;
| xref:BloombergLP/bdlb/CharType/numIdent.adoc[`numIdent`] 
| Return the number of characters in the category `IDENT` (i&period;e&period;, `&lsqb;ALNUM&verbar;&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numLower.adoc[`numLower`] 
| Return the number of characters in the category `LOWER` (i&period;e&period;, `&lsqb;a&hyphen;z&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numNone.adoc[`numNone`] 
| Return the number of characters in the category `NONE`&period; Note that the string returned by the `stringNone` method is empty&period;
| xref:BloombergLP/bdlb/CharType/numOdigit.adoc[`numOdigit`] 
| Return the number of characters in the category `ODIGIT` (i&period;e&period;, `&lsqb;0&hyphen;7&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numPrint.adoc[`numPrint`] 
| Return the number of characters in the category `PRINT` (i&period;e&period;, any printable character including `SPACE`)&period;
| xref:BloombergLP/bdlb/CharType/numPunct.adoc[`numPunct`] 
| Return the number of characters in the category `PUNCT` (i&period;e&period;, any printable character other than `SPACE` or `ALNUM`)&period;
| xref:BloombergLP/bdlb/CharType/numSpace.adoc[`numSpace`] 
| Return the number of characters in the category `SPACE` (i&period;e&period;, `&lsqb;space&verbar;tab&verbar;CR&verbar;NL&verbar;VT&verbar;FF&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numUpper.adoc[`numUpper`] 
| Return the number of characters in the category `UPPER` (i&period;e&period;, `&lsqb;A&hyphen;Z&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/numXdigit.adoc[`numXdigit`] 
| Return the number of characters in the category `XDIGIT` (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Fa&hyphen;f&rsqb;`)&period;
| xref:BloombergLP/bdlb/CharType/stringAll.adoc[`stringAll`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `ALL` (i&period;e&period;, `&lsqb;0&hyphen;377&rsqb;`), ordered by increasing character codes&period; Note that this string, if printed, may appear to be of length 0 because the `NULL` character is part of the set and appears first&period;
| xref:BloombergLP/bdlb/CharType/stringAlnum.adoc[`stringAlnum`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `ALNUM` (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Za&hyphen;Z&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringAlpha.adoc[`stringAlpha`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `ALPHA` (i&period;e&period;, `&lsqb;A&hyphen;Za&hyphen;z&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringAlund.adoc[`stringAlund`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `ALUND` (i&period;e&period;, `&lsqb;ALPHA&verbar;&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringAscii.adoc[`stringAscii`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `ASCII` (i&period;e&period;, `&lsqb;0&hyphen;177&rsqb;`), ordered by increasing character codes&period; Note that this string, if printed, may appear to be of length 0 because the `NULL` character is part of the set and appears first&period;
| xref:BloombergLP/bdlb/CharType/stringCategory.adoc[`stringCategory`] 
| Return a null&hyphen;terminated string consisting of all characters in the specified `category`, ordered by increasing character codes&period; Note that for category values of `CNTRL`, `ASCII, and `ALL&grave;, this string, if printed, may appear to be of length 0 because the `NULL` character is part of the set and appears first&period;
| xref:BloombergLP/bdlb/CharType/stringCntrl.adoc[`stringCntrl`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `CNTRL` (i&period;e&period;, `&lsqb;0&hyphen;37&rsqb;` and `177`), ordered by increasing character codes&period; Note that this string, if printed, may appear to be of length 0 because the `NULL` character is part of the set and appears first&period;
| xref:BloombergLP/bdlb/CharType/stringDigit.adoc[`stringDigit`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `DIGIT` (i&period;e&period;, `&lsqb;0&hyphen;9&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringGraph.adoc[`stringGraph`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `GRAPH` (i&period;e&period;, any printable character except `SPACE`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringIdent.adoc[`stringIdent`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `IDENT` (i&period;e&period;, `&lsqb;ALNUM&verbar;&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringLower.adoc[`stringLower`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `LOWER` (i&period;e&period;, `&lsqb;a&hyphen;z&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringNone.adoc[`stringNone`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `NONE`&period; Note that this string is empty&period;
| xref:BloombergLP/bdlb/CharType/stringOdigit.adoc[`stringOdigit`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `DIGIT` (i&period;e&period;, `&lsqb;0&hyphen;7&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringPrint.adoc[`stringPrint`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `PRINT` (i&period;e&period;, any printable character including `SPACE`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringPunct.adoc[`stringPunct`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `PUNCT` (i&period;e&period;, any printable character other than `SPACE` or `ALNUM`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringSpace.adoc[`stringSpace`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `SPACE` (i&period;e&period;, `&lsqb;space&verbar;tab&verbar;CR&verbar;NL&verbar;VT&verbar;FF&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringUpper.adoc[`stringUpper`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `UPPER` (i&period;e&period;, `&lsqb;A&hyphen;Z&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/stringXdigit.adoc[`stringXdigit`] 
| Return a null&hyphen;terminated string consisting of all characters in the category `XDIGIT` (i&period;e&period;, `&lsqb;0&hyphen;9A&hyphen;Fa&hyphen;f&rsqb;`), ordered by increasing character codes&period;
| xref:BloombergLP/bdlb/CharType/toAscii.adoc[`toAscii`] 
| Return a null&hyphen;terminated string representation of the specified character `category` enumerator that is identical to the enumerator name&period;
| xref:BloombergLP/bdlb/CharType/toLower.adoc[`toLower`] 
| Return the character in the `LOWER` category corresponding to the specified `input` character from the `UPPER` category or `input` itself if `input` is not in category `UPPER`&period;
| xref:BloombergLP/bdlb/CharType/toUpper.adoc[`toUpper`] 
| Return the character in the `UPPER` category corresponding to the specified `input` character from the `LOWER` category or `input` itself if `input` is not in category `LOWER`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
