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