|
ReXGlue SDK
|
#include <bit>#include <charconv>#include <cerrno>#include <cstdint>#include <cstdlib>#include <cstring>#include <format>#include <string>#include <string_view>#include <type_traits>#include <rex/assert.h>#include <rex/platform.h>#include <rex/string/text.h>#include <rex/types.h>Go to the source code of this file.
Namespaces | |
| namespace | rex |
Functions | |
| std::string | rex::string::to_hex_string (u32 value) |
| std::string | rex::string::to_hex_string (u64 value) |
| std::string | rex::string::to_hex_string (f32 value) |
| std::string | rex::string::to_hex_string (f64 value) |
| template<typename T> | |
| T | rex::string::from_string (const std::string_view value, bool force_hex=false) |
| template<> | |
| bool | rex::string::from_string< bool > (const std::string_view value, bool force_hex) |
| template<> | |
| i8 | rex::string::from_string< i8 > (const std::string_view value, bool force_hex) |
| template<> | |
| u8 | rex::string::from_string< u8 > (const std::string_view value, bool force_hex) |
| template<> | |
| i16 | rex::string::from_string< i16 > (const std::string_view value, bool force_hex) |
| template<> | |
| u16 | rex::string::from_string< u16 > (const std::string_view value, bool force_hex) |
| template<> | |
| i32 | rex::string::from_string< i32 > (const std::string_view value, bool force_hex) |
| template<> | |
| u32 | rex::string::from_string< u32 > (const std::string_view value, bool force_hex) |
| template<> | |
| i64 | rex::string::from_string< i64 > (const std::string_view value, bool force_hex) |
| template<> | |
| u64 | rex::string::from_string< u64 > (const std::string_view value, bool force_hex) |
| template<> | |
| f32 | rex::string::from_string< f32 > (const std::string_view value, bool force_hex) |
| template<> | |
| f64 | rex::string::from_string< f64 > (const std::string_view value, bool force_hex) |
|
inline |
Parses a value from a string. Only the specializations parse.
| force_hex | True to parse integers and floats as hex without a prefix. |
|
inline |
Parses a boolean. Accepts "true", "1" or "yes".
| force_hex | Unused. |
|
inline |
Parses a 32 bit float. Hex text gives the raw bits.
| force_hex | True to parse as raw hex bits without a prefix. |
|
inline |
Parses a 64 bit float. Hex text gives the raw bits.
| force_hex | True to parse as raw hex bits without a prefix. |
|
inline |
Parses a signed 16 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses a signed 32 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses a signed 64 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses a signed 8 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses an unsigned 16 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses an unsigned 32 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses an unsigned 64 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Parses an unsigned 8 bit integer. Hex takes a "0x" prefix or an "h" suffix.
| force_hex | True to parse as hex without a prefix. |
|
inline |
Formats the bits of a 32 bit float as 8 uppercase hex digits.
|
inline |
Formats the bits of a 64 bit float as 16 uppercase hex digits.
|
inline |
Formats a 32 bit value as 8 uppercase hex digits.
|
inline |
Formats a 64 bit value as 16 uppercase hex digits.