CharExtension Class

Extension methods for the Char struct.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class CharExtension
Inheritance
Object    CharExtension

Methods

IsAsciiIndicates whether the Unicode character belongs to the ASCII character set.
IsAsciiDigitIndicates whether a character is categorized as an ASCII digit [0-9].
IsAsciiHexDigitIndicates whether a character is categorized as an ASCII hexademical digit [0-9a-fA-F].
IsAsciiHexDigitLowerIndicates whether a character is categorized as an ASCII lower-case hexademical digit [0-9a-f].
IsAsciiHexDigitUpperIndicates whether a character is categorized as an ASCII upper-case hexadecimal digit [0-9A-F].
IsAsciiLetterExamines whether the Unicode character is an ASCII letter.
IsAsciiLetterLowerIndicates whether a character is categorized as a lowercase ASCII letter.
IsAsciiLetterOrDigitIndicates whether a character is categorized as an ASCII letter [A-Za-z] or digit [0-9].
IsAsciiLetterUpperIndicates whether a character is categorized as an uppercase ASCII letter.
IsBetweenIndicates whether a character is within the specified inclusive range.
IsBinaryDigitIndicates whether the Unicode character is a binary digit (0 or 1).
IsControlIndicates whether the Unicode character is categorized as a control character.
IsDigitIndicates whether the Unicode character is categorized as a member of the Unicode category "Decimal Digit Number".
IsHighSurrogateIndicates whether the Unicode character is a high surrogate.
IsLetterIndicates whether the Unicode character is categorized as a Unicode letter.
IsLetterOrDigitIndicates whether the Unicode character is categorized as a Unicode letter or decimal digit.
IsLowerIndicates whether the Unicode character is categorized as a lowercase letter.
IsLowSurrogateIndicates whether the Unicode character is a low surrogate.
IsNewLineIndicates whether the Unicode character is categorized as a newline character.
IsNumberIndicates whether the Unicode character is categorized as a number.
IsPunctuationIndicates whether the Unicode character is categorized as a punctuation mark.
IsSeparatorIndicates whether the Unicode character is categorized as a separator character.
IsSurrogateIndicates whether the Unicode character has a surrogate code unit.
IsSymbolIndicates whether the Unicode character is categorized as a symbol character.
IsUpperIndicates whether the Unicode character is categorized as a uppercase letter.
IsWhiteSpaceIndicates whether the Unicode character is categorized as white space.
ParseBinaryDigitGets the value of a binary digit.
ParseDecimalDigitGets the value of a decimal digit (0-9).
ParseHexDigitGets the value of a hexadecimal digit.
ToLowerInvariantConverts the value of a Unicode character to its lowercase equivalent using the casing rules of the invariant culture.
ToUpperInvariantConverts the value of a Unicode character to its uppercase equivalent using the casing rules of the invariant culture.
TryParseBinaryDigitTries to interpret a character as a binary digit (0 or 1) and to return the value that this binary digit represents.
TryParseDecimalDigitTries to interpret a character as a decimal digit (0-9) and to return the value that this decimal digit represents.
TryParseHexDigitTries to interpret a character as a hexadecimal digit and to return the value that this hexadecimal digit represents.

See Also