|
rapidyaml
0.11.0
parse and emit YAML, and do it fast
|
Functions | |
| template<class I > | |
| bool | c4::read_dec (csubstr s, I *v) noexcept |
| read a decimal integer from a string. More... | |
| template<class I > | |
| bool | c4::read_hex (csubstr s, I *v) noexcept |
| read an hexadecimal integer from a string. More... | |
| template<class I > | |
| bool | c4::read_bin (csubstr s, I *v) noexcept |
| read a binary integer from a string. More... | |
| template<class I > | |
| bool | c4::read_oct (csubstr s, I *v) noexcept |
| read an octal integer from a string. More... | |
|
inlinenoexcept |
read a decimal integer from a string.
This is the lowest level (and the fastest) function to do this task.
read_dec<int8_t>("128", &val) returns true and val will be set to 0 because 127 is the max i8 value. Definition at line 861 of file charconv.hpp.
|
inlinenoexcept |
read an hexadecimal integer from a string.
This is the lowest level (and the fastest) function to do this task.
read_hex<int8_t>("80", &val) returns true and val will be set to 0 because 7f is the max i8 value. Definition at line 889 of file charconv.hpp.
|
inlinenoexcept |
read a binary integer from a string.
This is the lowest level (and the fastest) function to do this task.
read_bin<int8_t>("10000000", &val) returns true and val will be set to 0 because 1111111 is the max i8 value. Definition at line 924 of file charconv.hpp.
|
inlinenoexcept |
read an octal integer from a string.
This is the lowest level (and the fastest) function to do this task.
read_oct<int8_t>("200", &val) returns true and val will be set to 0 because 177 is the max i8 value. Definition at line 954 of file charconv.hpp.