AppCUI::Utils::Number

namespace Number

Parsing of numbers from strings (decimal, hexadecimal, …).

Functions

optional<uint64> AppCUI::Utils::Number::ToUInt64(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<uint32> AppCUI::Utils::Number::ToUInt32(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<uint16> AppCUI::Utils::Number::ToUInt16(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<uint8> AppCUI::Utils::Number::ToUInt8(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<int64> AppCUI::Utils::Number::ToInt64(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<int32> AppCUI::Utils::Number::ToInt32(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<int16> AppCUI::Utils::Number::ToInt16(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<int8> AppCUI::Utils::Number::ToInt8(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<float> AppCUI::Utils::Number::ToFloat(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)
optional<double> AppCUI::Utils::Number::ToDouble(string_view text, NumberParseFlags flags = NumberParseFlags::None, uint32 *size = nullptr)