|
rapidyaml 0.14.0
parse and emit YAML, and do it fast
|
Classes | |
| struct | c4::yml::TagCache |
| Accelerator structure to reduce memory requirements by enabling reuse of resolved tags. More... | |
| struct | c4::yml::TagDirective |
| struct | c4::yml::TagDirectiveRange |
| struct | c4::yml::TagDirectives |
Macros | |
| #define | RYML_MAX_TAG_DIRECTIVES 4 |
| the maximum number of tag directives in a Tree | |
Typedefs | |
| using | c4::yml::tag_bits = uint16_t |
| the integral type necessary to cover all the bits marking node tags | |
Enumerations | |
| enum | c4::yml::YamlTag_e : tag_bits { c4::yml::TAG_NONE = 0 , c4::yml::TAG_MAP = 1 , c4::yml::TAG_OMAP = 2 , c4::yml::TAG_PAIRS = 3 , c4::yml::TAG_SET = 4 , c4::yml::TAG_SEQ = 5 , c4::yml::TAG_BINARY = 6 , c4::yml::TAG_BOOL = 7 , c4::yml::TAG_FLOAT = 8 , c4::yml::TAG_INT = 9 , c4::yml::TAG_MERGE = 10 , c4::yml::TAG_NULL = 11 , c4::yml::TAG_STR = 12 , c4::yml::TAG_TIMESTAMP = 13 , c4::yml::TAG_VALUE = 14 , c4::yml::TAG_YAML = 15 } |
| a bit mask for marking tags for types More... | |
Functions | |
| YamlTag_e | c4::yml::to_tag (csubstr tag) |
| csubstr | c4::yml::from_tag (YamlTag_e tag) |
| csubstr | c4::yml::from_tag_long (YamlTag_e tag) |
| csubstr | c4::yml::normalize_tag (csubstr tag) |
| csubstr | c4::yml::normalize_tag_long (csubstr tag) |
| csubstr | c4::yml::normalize_tag_long (csubstr tag, substr output) |
| bool | c4::yml::is_custom_tag (csubstr tag) |
| is a tag of the form !handle!tag? | |
| bool | c4::yml::is_valid_tag_handle (csubstr handle) |
| size_t | c4::yml::transform_tag (substr output, csubstr handle, csubstr prefix, csubstr tag, Callbacks const &callbacks, Location const &ymlloc={}, bool with_brackets=true) |
| returns the length of the transformed tag, or 0 to signal that the tag is local and cannot be resolved | |
| #define RYML_MAX_TAG_DIRECTIVES 4 |
| using c4::yml::tag_bits = uint16_t |
| enum c4::yml::YamlTag_e : tag_bits |
a bit mask for marking tags for types
| Enumerator | |
|---|---|
| TAG_NONE | |
| TAG_MAP | ! !map Unordered set of key: value pairs without duplicates.
|
| TAG_OMAP | ! !omap Ordered sequence of key: value pairs without duplicates.
|
| TAG_PAIRS | ! !pairs Ordered sequence of key: value pairs allowing duplicates.
|
| TAG_SET | ! !set Unordered set of non-equal values.
|
| TAG_SEQ | ! !seq Sequence of arbitrary values.
|
| TAG_BINARY | ! !binary A sequence of zero or more octets (8 bit values). |
| TAG_BOOL | ! !bool Mathematical Booleans.
|
| TAG_FLOAT | ! !float Floating-point approximation to real numbers. https://yaml.org/type/float.html |
| TAG_INT | ! !float Mathematical integers. https://yaml.org/type/int.html |
| TAG_MERGE | ! !merge Specify one or more mapping to be merged with the current one. https://yaml.org/type/merge.html |
| TAG_NULL | ! !null Devoid of value. https://yaml.org/type/null.html |
| TAG_STR | ! !str A sequence of zero or more Unicode characters. https://yaml.org/type/str.html |
| TAG_TIMESTAMP | ! !timestamp A point in time https://yaml.org/type/timestamp.html |
| TAG_VALUE | ! !value Specify the default value of a mapping https://yaml.org/type/value.html |
| TAG_YAML | ! !yaml Specify the default value of a mapping https://yaml.org/type/yaml.html |
Definition at line 33 of file tag.hpp.
Definition at line 68 of file tag.cpp.
Definition at line 170 of file tag.cpp.
Definition at line 130 of file tag.cpp.
Definition at line 43 of file tag.cpp.
| bool c4::yml::is_custom_tag | ( | csubstr | tag | ) |
| bool c4::yml::is_valid_tag_handle | ( | csubstr | handle | ) |
Definition at line 210 of file tag.cpp.
| size_t c4::yml::transform_tag | ( | substr | output, |
| csubstr | handle, | ||
| csubstr | prefix, | ||
| csubstr | tag, | ||
| Callbacks const & | callbacks, | ||
| Location const & | ymlloc, | ||
| bool | with_brackets ) |
returns the length of the transformed tag, or 0 to signal that the tag is local and cannot be resolved
Definition at line 287 of file tag.cpp.