System::Globalization::CharUnicodeInfo::GetDigitValue 方法
CharUnicodeInfo::GetDigitValue(char16_t) method
获取指定字符的数字值。
static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)
| 参数 | 类型 | 描述 |
|---|---|---|
| ch | char16_t | Unicode 字符。 |
ReturnValue
数字值;如果指定字符不是数字,则返回 -1。
另见
- Class CharUnicodeInfo
- Namespace System::Globalization
- Library Aspose.Font for C++
CharUnicodeInfo::GetDigitValue(const String&, int) method
获取字符串中指定索引处字符的数字值。
static int System::Globalization::CharUnicodeInfo::GetDigitValue(const String &str, int index)
| 参数 | 类型 | 描述 |
|---|---|---|
| str | const String& | 包含 Unicode 字符的字符串。 |
| 索引 | int | Unicode 字符的索引。 |
ReturnValue
数字值;如果指定字符不是数字,则返回 -1。
另见
- Class String
- Class CharUnicodeInfo
- Namespace System::Globalization
- Library Aspose.Font for C++