|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
Classes | |
| struct | c4::yml::TagCache::Entry |
| struct | c4::yml::TagCache::LookupResult |
| 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 More... | |
Typedefs | |
| using | c4::yml::tag_bits = uint16_t |
| the integral type necessary to cover all the bits marking node tags More... | |
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? More... | |
| 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 More... | |
| #define RYML_MAX_TAG_DIRECTIVES 4 |
the maximum number of tag directives in a Tree
Definition at line 26 of file tag.hpp.
Referenced by c4::yml::TagDirectives::add(), c4::yml::TagDirectives::lookup(), c4::yml::TagDirectives::lookup_range(), and c4::yml::TagDirectives::size().
| using c4::yml::tag_bits = typedef 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. |
| TAG_INT |
!!float Mathematical integers. |
| TAG_MERGE |
!!merge Specify one or more mapping to be merged with the current one. |
| TAG_NULL |
!!null Devoid of value. |
| TAG_STR |
!!str A sequence of zero or more Unicode characters. |
| 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.
| YamlTag_e c4::yml::to_tag | ( | csubstr | tag | ) |
Definition at line 68 of file tag.cpp.
Referenced by c4::yml::normalize_tag(), c4::yml::normalize_tag_long(), c4::yml::TagDirectives::resolve(), and sample_tags().
| csubstr c4::yml::from_tag | ( | YamlTag_e | tag | ) |
Definition at line 170 of file tag.cpp.
Referenced by c4::yml::normalize_tag(), and sample_tags().
| csubstr c4::yml::from_tag_long | ( | YamlTag_e | tag | ) |
Definition at line 130 of file tag.cpp.
Referenced by c4::yml::normalize_tag_long(), c4::yml::TagDirectives::resolve(), and sample_tags().
| csubstr c4::yml::normalize_tag | ( | csubstr | tag | ) |
| csubstr c4::yml::normalize_tag_long | ( | csubstr | tag | ) |
Definition at line 31 of file tag.cpp.
Referenced by c4::yml::normalize_tag_long(), and sample_tags().
Definition at line 43 of file tag.cpp.
| bool c4::yml::is_custom_tag | ( | csubstr | tag | ) |
is a tag of the form !handle!tag?
Definition at line 9 of file tag.cpp.
Referenced by c4::yml::TagDirectives::lookup(), and c4::yml::TagDirectives::resolve().
| bool c4::yml::is_valid_tag_handle | ( | csubstr | handle | ) |
Definition at line 210 of file tag.cpp.
Referenced by c4::yml::Tree::add_tag_directive().
| 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.
Referenced by c4::yml::TagDirectives::resolve().