|
rapidyaml
0.12.0
parse and emit YAML, and do it fast
|
Functions | |
| template<class T > | |
| bool | c4::atou (csubstr str, T *v) noexcept |
| Convert a trimmed string to an unsigned integral value. More... | |
| template<class T > | |
| size_t | c4::atou_first (csubstr str, T *v) |
| Select the next range of characters in the string that can be parsed as an unsigned integral value, and convert it using atou(). More... | |
|
noexcept |
Convert a trimmed string to an unsigned integral value.
The string can be formatted as decimal, binary (prefix 0b or 0B), octal (prefix 0o or 0O) or hexadecimal (prefix 0x or 0X). Every character in the input string is read for the conversion; it must not contain any leading or trailing whitespace.
Definition at line 1546 of file charconv.hpp.
References c4::read_bin(), c4::read_dec(), c4::read_hex(), and c4::read_oct().
|
inline |
Select the next range of characters in the string that can be parsed as an unsigned integral value, and convert it using atou().
Leading whitespace (space, newline, tabs) is skipped.
Definition at line 1588 of file charconv.hpp.
References c4::atou(), and c4::yml::npos.