System::Globalization::CharUnicodeInfo::GetDigitValue method

CharUnicodeInfo::GetDigitValue(char16_t) method

Gets digit value of the specified character.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)
ParameterTypeDescription
chchar16_tUnicode character.

ReturnValue

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

See Also

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)
ParameterTypeDescription
strconst String&The string containing unicode character.
indexintThe index of the unicode character.

ReturnValue

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

See Also