GetDecimalDigitValue()

CharUnicodeInfo::GetDecimalDigitValue(char16_t) method

Gets decimal digit value of the specified character.

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

Arguments

ParameterTypeDescription
chchar16_tUnicode character.

Return Value

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

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

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

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

Arguments

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

Return Value

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

See Also