Pre-defined universal from-string functions. More...
Go to the source code of this file.
Classes | |
struct | FromString< typename > |
Template class based from-string function for use in template classes. More... | |
struct | FromString< char > |
UTF-8 specialisation of FromString<T>. More... | |
struct | FromString< char16_t > |
UTF-16 specialisation of FromString<T>. More... | |
struct | FromString< char32_t > |
UTF-32 specialisation of FromString<T>. More... | |
Functions | |
void | fromString (std::string &destination, std::string_view value) |
Sets the destination value to the supplied value. More... | |
void | fromString (std::u16string &destination, std::string_view value) |
Sets the destination value to a UTF-16 version of the supplied UTF-8 string. More... | |
void | fromString (std::u32string &destination, std::string_view value) |
Sets the destination value to a UTF-32 version of the supplied UTF-8 string. More... | |
void | fromString (char &destination, std::string_view value) |
Sets the destination value to the first UTF-8 character in the supplied UTF-8 string. More... | |
void | fromString (char32_t &destination, std::string_view value) |
Sets the destination value to the first code point in the supplied UTF-8 string. More... | |
void | fromString (signed char &destination, std::string_view value) |
Converts the supplied string to a signed char value. More... | |
void | fromString (signed char &destination, std::string_view value, int base) |
Converts the supplied string to a signed char value, using the specified numeric base. More... | |
void | fromString (short &destination, std::string_view value) |
Converts the supplied string to a signed short value. More... | |
void | fromString (short &destination, std::string_view value, int base) |
Converts the supplied string to a signed short value, using the specified numeric base. More... | |
void | fromString (int &destination, std::string_view value) |
Converts the supplied string to a signed int value. More... | |
void | fromString (int &destination, std::string_view value, int base) |
Converts the supplied string to a signed int value, using the specified numeric base. More... | |
void | fromString (long &destination, std::string_view value) |
Converts the supplied string to a signed long value. More... | |
void | fromString (long &destination, std::string_view value, int base) |
Converts the supplied string to a signed long value, using the specified numeric base. More... | |
void | fromString (long long &destination, std::string_view value) |
Converts the supplied string to a signed long long value. More... | |
void | fromString (long long &destination, std::string_view value, int base) |
Converts the supplied string to a signed long long value, using the specified numeric base. More... | |
void | fromString (unsigned char &destination, std::string_view value) |
Converts the supplied string to a unsigned char value. More... | |
void | fromString (unsigned char &destination, std::string_view value, int base) |
Converts the supplied string to a unsigned char value, using the specified numeric base. More... | |
void | fromString (unsigned short &destination, std::string_view value) |
Converts the supplied string to a unsigned short value. More... | |
void | fromString (unsigned short &destination, std::string_view value, int base) |
Converts the supplied string to a unsigned short value, using the specified numeric base. More... | |
void | fromString (unsigned int &destination, std::string_view value) |
Converts the supplied string to a unsigned int value. More... | |
void | fromString (unsigned int &destination, std::string_view value, int base) |
Converts the supplied string to a unsigned int value, using the specified numeric base. More... | |
void | fromString (unsigned long &destination, std::string_view value) |
Converts the supplied string to a unsigned long value. More... | |
void | fromString (unsigned long &destination, std::string_view value, int base) |
Converts the supplied string to a unsigned long value, using the specified numeric base. More... | |
void | fromString (unsigned long long &destination, std::string_view value) |
Converts the supplied string to a unsigned long long value. More... | |
void | fromString (unsigned long long &destination, std::string_view value, int base) |
Converts the supplied string to a unsigned long long value, using the specified numeric base. More... | |
void | fromString (float &destination, std::string_view value) |
Converts the supplied string to a single precision floating point value. More... | |
void | fromString (double &destination, std::string_view value) |
Converts the supplied string to a double precision floating point value. More... | |
void | fromString (long double &destination, std::string_view value) |
Converts the supplied string to a long double precision floating point value. More... | |
void | fromString (bool &destination, std::string_view value) |
Converts the supplied string to a boolean value. More... | |
void | fromString16 (std::string &destination, std::u16string_view value) |
Sets the destination value to a UTF-8 version of the supplied UTF-16 string. More... | |
void | fromString16 (std::u16string &destination, std::u16string_view value) |
Sets the destination value to the supplied value. More... | |
void | fromString16 (std::u32string &destination, std::u16string_view value) |
Sets the destination value to a UTF-32 version of the supplied UTF-16 string. More... | |
void | fromString16 (char &destination, std::u16string_view value) |
Sets the destination value to the first character in the supplied UTF-16 string. More... | |
void | fromString16 (char32_t &destination, std::u16string_view value) |
Sets the destination value to the first code point in the supplied UTF-16 string. More... | |
void | fromString16 (signed char &destination, std::u16string_view value) |
Converts the supplied string to a signed char value. More... | |
void | fromString16 (short &destination, std::u16string_view value) |
Converts the supplied string to a signed short value. More... | |
void | fromString16 (int &destination, std::u16string_view value) |
Converts the supplied string to a signed int value. More... | |
void | fromString16 (long &destination, std::u16string_view value) |
Converts the supplied string to a signed long value. More... | |
void | fromString16 (long long &destination, std::u16string_view value) |
Converts the supplied string to a signed long long value. More... | |
void | fromString16 (unsigned char &destination, std::u16string_view value) |
Converts the supplied string to a unsigned char value. More... | |
void | fromString16 (unsigned short &destination, std::u16string_view value) |
Converts the supplied string to a unsigned short value. More... | |
void | fromString16 (unsigned int &destination, std::u16string_view value) |
Converts the supplied string to a unsigned int value. More... | |
void | fromString16 (unsigned long &destination, std::u16string_view value) |
Converts the supplied string to a unsigned long value. More... | |
void | fromString16 (unsigned long long &destination, std::u16string_view value) |
Converts the supplied string to a unsigned long long value. More... | |
void | fromString16 (float &destination, std::u16string_view value) |
Sets the destination value to Convert the supplied float to a UTF-16 string. More... | |
void | fromString16 (double &destination, std::u16string_view value) |
Sets the destination value to Convert the supplied double to a UTF-16 string. More... | |
void | fromString16 (long double &destination, std::u16string_view value) |
Sets the destination value to Convert the supplied long double to a UTF-16 string. More... | |
void | fromString16 (bool &destination, std::u16string_view value) |
Converts the supplied string to a boolean value. More... | |
void | fromString32 (std::string &destination, std::u32string_view value) |
Sets the destination value to a UTF-8 version of the supplied UTF-32 string. More... | |
void | fromString32 (std::u16string &destination, std::u32string_view value) |
Sets the destination value to a UTF-16 version of the supplied UTF-32 string. More... | |
void | fromString32 (std::u32string &destination, std::u32string_view value) |
Sets the destination value to the supplied value. More... | |
void | fromString32 (char &destination, std::u32string_view value) |
Sets the destination value to the first character in the supplied UTF-32 string. More... | |
void | fromString32 (char32_t &destination, std::u32string_view value) |
Sets the destination value to the first code point in the supplied UTF-32 string. More... | |
void | fromString32 (signed char &destination, std::u32string_view value) |
Converts the supplied string to a signed char value. More... | |
void | fromString32 (short &destination, std::u32string_view value) |
Converts the supplied string to a signed short value. More... | |
void | fromString32 (int &destination, std::u32string_view value) |
Converts the supplied string to a signed int value. More... | |
void | fromString32 (long &destination, std::u32string_view value) |
Converts the supplied string to a signed long value. More... | |
void | fromString32 (long long &destination, std::u32string_view value) |
Converts the supplied string to a signed long long value. More... | |
void | fromString32 (unsigned char &destination, std::u32string_view value) |
Converts the supplied string to a unsigned char value. More... | |
void | fromString32 (unsigned short &destination, std::u32string_view value) |
Converts the supplied string to a unsigned short value. More... | |
void | fromString32 (unsigned int &destination, std::u32string_view value) |
Converts the supplied string to a unsigned int value. More... | |
void | fromString32 (unsigned long &destination, std::u32string_view value) |
Converts the supplied string to a unsigned long value. More... | |
void | fromString32 (unsigned long long &destination, std::u32string_view value) |
Converts the supplied string to a unsigned long long value. More... | |
void | fromString32 (float &destination, std::u32string_view value) |
Sets the destination value to Convert the supplied float to a UTF-32 string. More... | |
void | fromString32 (double &destination, std::u32string_view value) |
Sets the destination value to Convert the supplied double to a UTF-32 string. More... | |
void | fromString32 (long double &destination, std::u32string_view value) |
Sets the destination value to Convert the supplied long double to a UTF-32 string. More... | |
void | fromString32 (bool &destination, std::u32string_view value) |
Converts the supplied string to a boolean value. More... | |
Pre-defined universal from-string functions.
struct FromString |
Template class based from-string function for use in template classes.
|
inline |
Sets the destination value to the supplied value.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to a UTF-16 version of the supplied UTF-8 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to a UTF-32 version of the supplied UTF-8 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to the first UTF-8 character in the supplied UTF-8 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to the first code point in the supplied UTF-8 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed char value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed short value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed int value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long long value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned char value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned short value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned int value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long long value, using the specified numeric base.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
base | the base of the unsigned short in the supplied string view |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a single precision floating point value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a double precision floating point value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a long double precision floating point value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a boolean value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to a UTF-8 version of the supplied UTF-16 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to the supplied value.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to a UTF-32 version of the supplied UTF-16 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to the first character in the supplied UTF-16 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to the first code point in the supplied UTF-16 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied float to a UTF-16 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied double to a UTF-16 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied long double to a UTF-16 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a boolean value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to a UTF-8 version of the supplied UTF-32 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to a UTF-16 version of the supplied UTF-32 string.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to the supplied value.
destination | the destination value that is set via assignment |
value | the string view input |
|
inline |
Sets the destination value to the first character in the supplied UTF-32 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to the first code point in the supplied UTF-32 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a signed long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned char value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned short value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned int value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a unsigned long long value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied float to a UTF-32 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied double to a UTF-32 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Sets the destination value to Convert the supplied long double to a UTF-32 string.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |
|
inline |
Converts the supplied string to a boolean value.
A ConversionException will be thrown under the following circumstances:
destination | the destination value that is set via assignment |
value | the string view input |
ConversionException | when the conversion fails |