|
rapidyaml
0.7.1
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 865 of file charconv.hpp.
Referenced by c4::atoi(), and c4::atou().
|
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 893 of file charconv.hpp.
Referenced by c4::atoi(), c4::atou(), and c4::yml::TagDirective::transform().
|
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 928 of file charconv.hpp.
Referenced by c4::atoi(), and c4::atou().
|
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 958 of file charconv.hpp.
Referenced by c4::atoi(), and c4::atou().