|
rapidyaml
0.7.1
parse and emit YAML, and do it fast
|
Classes | |
| struct | c4::yml::Key< K > |
| struct | c4::yml::Key< fmt::const_base64_wrapper > |
| struct | c4::yml::Key< fmt::base64_wrapper > |
Functions | |
| template<class K > | |
| Key< K > | c4::yml::key (K &k) |
| Key< fmt::const_base64_wrapper > | c4::yml::key (fmt::const_base64_wrapper w) |
| Key< fmt::base64_wrapper > | c4::yml::key (fmt::base64_wrapper w) |
| template<class T > | |
| void | c4::yml::write (NodeRef *n, T const &v) |
| template<class T > | |
| std::enable_if< ! std::is_floating_point< T >::value, bool >::type | c4::yml::read (NodeRef const &n, T *v) |
| convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>(). More... | |
| template<class T > | |
| auto | c4::yml::read (ConstNodeRef const &n, T *v) -> typename std::enable_if< ! std::is_floating_point< T >::value, bool >::type |
| convert the val of a scalar node to a particular type, by forwarding its val to from_chars<T>(). More... | |
|
inline |
Definition at line 43 of file node.hpp.
Referenced by c4::yml::NodeInit::_add_flags(), c4::yml::NodeInit::_check(), c4::yml::NodeInit::clear(), c4::yml::Tree::find_sibling(), c4::yml::Tree::has_child(), c4::yml::Tree::has_sibling(), c4::yml::Tree::operator[](), c4::yml::read(), sample::read(), c4::yml::NodeRef::remove_child(), sample::sample_base64(), sample::sample_iterate_trees(), sample::sample_parse_in_arena(), sample::sample_parse_in_place(), sample::sample_parse_reuse_tree(), sample::sample_quick_overview(), c4::yml::NodeRef::set_key(), c4::yml::Tree::set_key(), c4::yml::write(), and sample::write().
|
inline |
|
inline |
|
inline |
Definition at line 1602 of file node.hpp.
References c4::yml::NodeRef::set_val_serialized().
Referenced by c4::yml::NodeRef::operator<<().
|
inline |
convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>().
"34", "34 " "34hg" "34 gh" will be read as 34. If you are not sure about the contents of the data, you can use csubstr::first_real_span() to check before calling >>, for example like this:convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>().
The full string is used.
Definition at line 1676 of file node.hpp.
References c4::yml::from_chars_float(), c4::yml::detail::read_skip_plus(), and c4::yml::detail::RoNodeMethods< Impl, ConstImpl >::val().
Referenced by c4::yml::detail::RoNodeMethods< Impl, ConstImpl >::operator>>().
|
inline |
convert the val of a scalar node to a particular type, by forwarding its val to from_chars<T>().
The full string is used.
Definition at line 1643 of file node.hpp.
References c4::yml::detail::read_skip_plus().