Char

Char class

Provides methods for manipulation of characters represented as UTF-16 code units. This is a static type with no instance services. You should never create instances of it by any means.

class Char

Methods

MethodDescription
static String ConvertFromUtf32(uint32_t)Converts UTF-32 code unit into an instance of System::String class.
static int ConvertToUtf32(char_t, char_t)Converts the specified UTF-16 surrogate pair into UTF-32 code unit.
static int ConvertToUtf32(const String&, int)Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into UTF-32 code unit.
static double GetNumericValue(char_t)Converts the specified UTF-16 character into double-precision floating-point numerical value.
static Globalization::UnicodeCategory GetUnicodeCategory(char_t)Returns a value that represents a Unicode category of specified character.
static constexpr bool IsAsciiWhiteSpace(char_t)Determines whether the specified character is classified as a ASCII white space character.
static bool IsControl(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as Unicode control character.
static bool IsControl(char_t)Determines whether the specified character is classified as Unicode control character.
static bool IsDigit(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a decimal digit.
static bool IsDigit(const String&, const int32_t)Determines whether the character at the specified index in the specified string is classified as a decimal digit.
static bool IsDigit(char_t)Determines whether the specified character is classified as a decimal digit.
static bool IsHighSurrogate(const String&, int)Determines whether the character at the specified index in the specified string is UTF-16 high surrogate code unit.
static bool IsHighSurrogate(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is a high surrogate.
static bool IsHighSurrogate(char_t)Determines whether the specified character is a high surrogate.
static bool IsLetter(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter.
static bool IsLetter(char_t)Determines whether the specified character is classified as Unicode letter.
static bool IsLetterOrDigit(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter or a decimal digit.
static bool IsLetterOrDigit(char_t)Determines whether the specified character is classified as Unicode letter or a decimal digit.
static bool IsLower(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a lower case letter.
static bool IsLower(char_t)Determines whether the specified character is classified as a lower case letter.
static bool IsLower(const String&, int)Determines whether the character at the specified index in the specified string is classified as a lower case letter.
static bool IsLowSurrogate(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is a low surrogate.
static bool IsLowSurrogate(char_t)Determines whether the specified character is a low surrogate.
static bool IsNumber(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a number.
static bool IsNumber(char_t)Determines whether the specified character is classified as a number.
static bool IsPunctuation(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a punctuation character.
static bool IsPunctuation(char_t)Determines whether the specified character is classified as a punctuation character.
static bool IsSeparator(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a separator character.
static bool IsSeparator(char_t)Determines whether the specified character is classified as a separator character.
static bool IsSurrogate(char_t)Determines if the specified character is a UTF-16 surrogate code unit.
static bool IsSurrogate(const String&, int)Determines whether the character at the specified index in the specified string is UTF-16 surrogate code unit.
static bool IsSurrogatePair(char_t, char_t)Determines whether the two specified characters for a UTF-16 surrogate pair.
static bool IsSurrogatePair(const String&, int)Determines whether two consequent characters in the specified character buffer are a surrogate pair.
static bool IsSymbol(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a symbol character.
static bool IsSymbol(char_t)Determines whether the specified character is classified as a symbol character.
static bool IsUpper(const String&, int)Determines whether the character at the specified index in the specified string is classified as an upper case letter.
static bool IsUpper(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as an upper case letter.
static bool IsUpper(char_t)Determines whether the specified character is classified as an upper case letter.
static bool IsWhiteSpace(const char_t *, int)Determines whether the character at the specified index in the specified character buffer is classified as a white space character.
static bool IsWhiteSpace(char_t)Determines whether the specified character is classified as a white space character.
static bool IsWhiteSpace(const String&, int)Determines whether the character at the specified index in the specified string is classified as a white space character.
static char_t Parse(const String&)Converts the first and the only character of the specified string to a char_t value.
static char_t ToLower(char_t)Converts the specified character to lower case.
static char_t ToLower(char_t, const SharedPtr<Globalization::CultureInfo>&)Converts the specified character to lower case.
static char_t ToLowerInvariant(char_t)Converts the specified character to lower case.
static char_t ToUpper(char_t)Converts the specified character to upper case.
static char_t ToUpper(char_t, const SharedPtr<Globalization::CultureInfo>&)Converts the specified character to upper case.
static char_t ToUpperInvariant(char_t)Converts the specified character to upper case.
static bool TryParse(const System::String&, char_t&)Tries to convert a string consisting of a single character into UTF-16 character. The function succeeds only when input string is not null and has length of exactly one character.

See Also