|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
Read a value from the string, which must be trimmed to the value (ie, no leading/trailing whitespace). More...
Modules | |
| from_chars_first: generalized chars to value | |
| Read the first valid sequence of characters from the string, skipping leading whitespace, and convert it using from_chars: generalized chars to value . | |
Functions | |
| bool | c4::from_chars (csubstr buf, uint8_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, uint16_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, uint32_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, uint64_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, int8_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, int16_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, int32_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, int64_t *v) noexcept |
| bool | c4::from_chars (csubstr buf, float *v) noexcept |
| bool | c4::from_chars (csubstr buf, double *v) noexcept |
| template<class T > | |
| auto | c4::from_chars (csubstr buf, T *v) noexcept-> bool::type |
| template<class T > | |
| bool | c4::from_chars (csubstr buf, T **v) noexcept |
| bool | c4::from_chars (csubstr buf, bool *v) noexcept |
| bool | c4::from_chars (csubstr buf, char *v) noexcept |
| extract a single character from a substring More... | |
| bool | c4::from_chars (csubstr buf, csubstr *v) noexcept |
| bool | c4::from_chars (csubstr buf, substr *v) noexcept |
| template<class T > | |
| bool | c4::from_chars (csubstr s, fmt::overflow_checked_< T > wrapper) |
| read an integer type, detecting overflow (returns false on overflow) More... | |
| template<class T > | |
| bool | c4::from_chars (csubstr s, fmt::overflow_checked_< T > *wrapper) |
| read an integer type, detecting overflow (returns false on overflow) More... | |
| bool | c4::from_chars (csubstr buf, fmt::raw_wrapper *r) |
| read a variable in raw binary format, using memcpy More... | |
| bool | c4::from_chars (csubstr buf, fmt::raw_wrapper r) |
| read a variable in raw binary format, using memcpy More... | |
| bool | c4::from_chars (csubstr buf, fmt::base64_wrapper const &b) |
| (1) read a variable in base64 format More... | |
| bool | c4::from_chars (csubstr buf, fmt::base64_wrapper *b) |
| (2) read a variable in base64 format More... | |
| template<class T > | |
| bool | c4::from_chars (csubstr buf, fmt::base64_container_wrapper< T > const &b) |
| read a container in base64 format, resizing it as needed to accomodate the result More... | |
| template<class T > | |
| bool | c4::from_chars (csubstr buf, fmt::base64_container_wrapper< T > const *b) |
| read a container in base64 format, resizing it as needed to accomodate the result More... | |
Read a value from the string, which must be trimmed to the value (ie, no leading/trailing whitespace).
return true if the conversion succeeded. There is no check for overflow; the value wraps around in a way similar to the standard C/C++ overflow behavior. For example, from_chars<int8_t>("128", &val) returns true and val will be set tot 0. See overflows: does a number string overflow a type and Check read for overflow for facilities enforcing no-overflow.
Dispatches to the most appropriate and efficient conversion function
|
inlinenoexcept |
Definition at line 2383 of file charconv.hpp.
Referenced by c4::from_chars(), c4::from_chars_first(), c4::yml::from_chars_float(), c4::yml::from_chars_integral(), c4::yml::read(), c4::yml::scalar_deserialize(), and c4::uncatsep().
|
inlinenoexcept |
Definition at line 2384 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2385 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2386 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2387 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2388 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2389 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2390 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2391 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2392 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2394 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2397 of file charconv.hpp.
|
inlinenoexcept |
Definition at line 2466 of file charconv.hpp.
|
inlinenoexcept |
extract a single character from a substring
Definition at line 2537 of file charconv.hpp.
Definition at line 2577 of file charconv.hpp.
|
inline |
read an integer type, detecting overflow (returns false on overflow)
Definition at line 322 of file format.hpp.
|
inline |
read an integer type, detecting overflow (returns false on overflow)
Definition at line 331 of file format.hpp.
| bool c4::from_chars | ( | csubstr | buf, |
| fmt::raw_wrapper * | r | ||
| ) |
|
inline |
read a variable in raw binary format, using memcpy
Definition at line 465 of file format.hpp.
|
inline |
(1) read a variable in base64 format
Definition at line 219 of file format_base64.hpp.
|
inline |
(2) read a variable in base64 format
Definition at line 229 of file format_base64.hpp.
| bool c4::from_chars | ( | csubstr | buf, |
| fmt::base64_container_wrapper< T > const & | b | ||
| ) |
read a container in base64 format, resizing it as needed to accomodate the result
Definition at line 261 of file format_base64.hpp.
| bool c4::from_chars | ( | csubstr | buf, |
| fmt::base64_container_wrapper< T > const * | b | ||
| ) |
read a container in base64 format, resizing it as needed to accomodate the result
Definition at line 288 of file format_base64.hpp.