|
static uint8_t | Parse (const String &value) |
| Converts the specified string containing the string representation of a number to the equivalent 8-bit unsigned integer. More...
|
|
static uint8_t | Parse (const String &value, const SharedPtr< IFormatProvider > &provider) |
| Converts the specified string containing the string representation of a number to the equivalent 8-bit unsigned integer using the provided formatting information. More...
|
|
static uint8_t | Parse (const String &value, const SharedPtr< Globalization::CultureInfo > &culture) |
|
static uint8_t | Parse (const String &value, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
|
static uint8_t | Parse (const String &value, std::nullptr_t) |
|
static uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider) |
| 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. More...
|
|
static uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture) |
|
static uint8_t | Parse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi) |
|
static uint8_t | Parse (const String &value, Globalization::NumberStyles styles, std::nullptr_t=nullptr) |
|
static bool | TryParse (const String &value, uint8_t &result) |
| Converts the specified string containing the string representation of a number to the equivalent 8-bit unsigned integer. More...
|
|
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< IFormatProvider > &provider, uint8_t &result) |
| 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. More...
|
|
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::CultureInfo > &culture, uint8_t &result) |
|
static bool | TryParse (const String &value, Globalization::NumberStyles styles, const SharedPtr< Globalization::NumberFormatInfo > &nfi, uint8_t &result) |
|
static 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;
}
static uint8_t Parse(const String &value)
Converts the specified string containing the string representation of a number to the equivalent 8-bi...
static bool TryParse(const String &value, uint8_t &result)
Converts the specified string containing the string representation of a number to the equivalent 8-bi...
Definition: db_command.h:9