System::Byte::TryParse method
Contents
[
Hide
]Byte::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::CultureInfo>&, uint8_t&) method
static bool System::Byte::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::CultureInfo> &culture, uint8_t &result)
See Also
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class CultureInfo
- Class Byte
- Namespace System
- Library Aspose.PUB for C++
Byte::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<Globalization::NumberFormatInfo>&, uint8_t&) method
static bool System::Byte::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<Globalization::NumberFormatInfo> &nfi, uint8_t &result)
See Also
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class NumberFormatInfo
- Class Byte
- Namespace System
- Library Aspose.PUB for C++
Byte::TryParse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&, uint8_t&) method
Converts the specified string containing the string representation of a number to the equivalent 8-bit unsigned integer using the provided formatting information and number style.
static bool System::Byte::TryParse(const String &value, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider, uint8_t &result)
Parameter | Type | Description |
---|---|---|
value | const String& | The string to convert. |
styles | Globalization::NumberStyles | A bitwise combination of values of NumberStyles enum that specifies the permitted style of the string representation of a number. |
provider | const SharedPtr<IFormatProvider>& | A pointer to an object that contains the string format information. |
result | uint8_t& | The reference to a 8-bit unsigned integer variable where the result of the conversion is put. |
ReturnValue
True if the conversion succeeded, otherwise - false.
See Also
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class IFormatProvider
- Class Byte
- Namespace System
- Library Aspose.PUB for C++
Byte::TryParse(const String&, Globalization::NumberStyles, std::nullptr_t, uint8_t&) method
static bool System::Byte::TryParse(const String &value, Globalization::NumberStyles styles, std::nullptr_t, uint8_t &result)
See Also
- Class String
- Enum NumberStyles
- Class Byte
- Namespace System
- Library Aspose.PUB for C++
Byte::TryParse(const String&, uint8_t&) method
Converts the specified string containing the string representation of a number to the equivalent 8-bit unsigned integer.
static bool System::Byte::TryParse(const String &value, uint8_t &result)
Parameter | Type | Description |
---|---|---|
value | const String& | The string to convert. |
result | uint8_t& | The reference to a 8-bit unsigned integer variable where the result of the conversion is put. |
ReturnValue
True if the conversion succeeded, otherwise - false.
See Also
- Class String
- Class Byte
- Namespace System
- Library Aspose.PUB for C++