|
rapidyaml
0.13.0
parse and emit YAML, and do it fast
|
Functions | |
| template<class T > | |
| bool | c4::atoi (csubstr str, T *v) noexcept |
| Convert a trimmed string to a signed integral value. More... | |
| template<class T > | |
| size_t | c4::atoi_first (csubstr str, T *v) |
| Select the next range of characters in the string that can be parsed as a signed integral value, and convert it using atoi(). More... | |
|
inlinenoexcept |
Convert a trimmed string to a signed integral value.
The input string can be formatted as decimal, binary (prefix 0b or 0B), octal (prefix 0o or 0O) or hexadecimal (prefix 0x or 0X). Strings with leading zeroes are considered as decimal and not octal (unlike the C/C++ convention). Every character in the input string is read for the conversion; the input string must not contain any leading or trailing whitespace.
Definition at line 1453 of file charconv.hpp.
|
inline |
Select the next range of characters in the string that can be parsed as a signed integral value, and convert it using atoi().
Leading whitespace (space, newline, tabs) is skipped.
Definition at line 1507 of file charconv.hpp.