|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, const SharedPtr< IFormatProvider > &provider) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
|
static uint8_t | Parse (const String &value, std::nullptr_t) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
|
static ASPOSECPP_SHARED_API uint8_t | Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr) |
|
static ASPOSECPP_SHARED_API bool | TryParse (const String &value, uint8_t &result) |
|
static ASPOSECPP_SHARED_API bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider, uint8_t &result) |
|
static ASPOSECPP_SHARED_API bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture, uint8_t &result) |
|
static ASPOSECPP_SHARED_API bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, uint8_t &result) |
|
static ASPOSECPP_SHARED_API bool | TryParse (const String &value, Globalization::NumberStyles styles, std::nullptr_t, uint8_t &result) |
|
Contains methods to work with the unsigned 8-bit integer.
#include <system/byte.h>
int main()
{
std::cout << static_cast<uint32_t>(b1) << std::endl;
try
{
std::cout << static_cast<uint32_t>(b2) << std::endl;
}
catch (const OverflowException &ex)
{
std::cerr << ex.what() << std::endl;
}
uint8_t b3 = 0;
{
std::cout << static_cast<uint32_t>(b3) << std::endl;
}
else
{
std::cerr << "Something went wrong." << std::endl;
}
return 0;
}