System::Byte::Parse 方法
内容
[
隐藏
]Byte::Parse(const String&) method
将包含数字字符串表示的指定字符串转换为等价的 8 位无符号整数。
static uint8_t System::Byte::Parse(const String &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 待转换的字符串。 |
ReturnValue
等于指定字符串所表示数字的 8 位无符号整数。
另见
- Class String
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&) method
static uint8_t System::Byte::Parse(const String &value, const SharedPtr<Globalization::CultureInfo> &culture)
另见
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, const SharedPtr<Globalization::NumberFormatInfo>&) method
static uint8_t System::Byte::Parse(const String &value, const SharedPtr<Globalization::NumberFormatInfo> &nfi)
另见
- Class String
- Typedef SharedPtr
- Class NumberFormatInfo
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, const SharedPtr<IFormatProvider>&) method
使用提供的格式信息,将包含数字字符串表示的指定字符串转换为等价的 8 位无符号整数。
static uint8_t System::Byte::Parse(const String &value, const SharedPtr<IFormatProvider> &provider)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 待转换的字符串。 |
| 提供程序 | const SharedPtr<IFormatProvider>& | 指向包含字符串格式信息的对象的指针。 |
ReturnValue
等于指定字符串所表示数字的 8 位无符号整数。
另见
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&) method
static uint8_t System::Byte::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::CultureInfo> &culture)
另见
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class CultureInfo
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&) method
static uint8_t System::Byte::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::NumberFormatInfo> &nfi)
另见
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class NumberFormatInfo
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&) method
使用提供的格式信息和数字样式,将包含数字字符串表示的指定字符串转换为等价的 8 位无符号整数。
static uint8_t System::Byte::Parse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 待转换的字符串。 |
| styles | Globalization::NumberStyles | NumberStyles 枚举值的按位组合,指定数字字符串表示的允许样式。 |
| 提供程序 | const SharedPtr<IFormatProvider>& | 指向包含字符串格式信息的对象的指针。 |
ReturnValue
等于指定字符串所表示数字的 8 位无符号整数。
另见
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class IFormatProvider
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, Globalization::NumberStyles, std::nullptr_t) method
static uint8_t System::Byte::Parse(const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr)
另见
- Class String
- Enum NumberStyles
- Class Byte
- Namespace System
- Library Aspose.Font for C++
Byte::Parse(const String&, std::nullptr_t) method
static uint8_t System::Byte::Parse(const String &value, std::nullptr_t)
另见
- Class String
- Class Byte
- Namespace System
- Library Aspose.Font for C++