GetDigitValue()

CharUnicodeInfo::GetDigitValue(char16_t) method

Gets digit value of the specified character.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)

Arguments

ParameterTypeDescription
chchar16_tUnicode character.

Return Value

The digit value or -1 if the specified character is not a digit.

CharUnicodeInfo::GetDigitValue(const String&, int) method

Gets digit value of the character at the specified index of the string.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(const String &str, int index)

Arguments

ParameterTypeDescription
strconst String&The string containing unicode character.
indexintThe index of the unicode character.

Return Value

The digit value or -1 if the specified character is not a digit.

See Also