System::Globalization::CharUnicodeInfo::GetDigitValue 方法

CharUnicodeInfo::GetDigitValue(char16_t) method

获取指定字符的数字值。

static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)
参数类型描述
chchar16_tUnicode 字符。

ReturnValue

数字值;如果指定字符不是数字,则返回 -1。

另见

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

获取字符串中指定索引处字符的数字值。

static int System::Globalization::CharUnicodeInfo::GetDigitValue(const String &str, int index)
参数类型描述
strconst String&包含 Unicode 字符的字符串。
索引intUnicode 字符的索引。

ReturnValue

数字值;如果指定字符不是数字,则返回 -1。

另见