|
rapidyaml
0.7.2
parse and emit YAML, and do it fast
|
Classes | |
| struct | c4::yml::TagDirective |
| struct | c4::yml::TagDirectiveRange |
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) |
| #define RYML_MAX_TAG_DIRECTIVES 4 |
| 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 26 of file tag.hpp.
| YamlTag_e c4::yml::to_tag | ( | csubstr | tag | ) |
Definition at line 67 of file tag.cpp.
References c4::yml::TAG_BINARY, c4::yml::TAG_BOOL, c4::yml::TAG_FLOAT, c4::yml::TAG_INT, c4::yml::TAG_MAP, c4::yml::TAG_MERGE, c4::yml::TAG_NONE, c4::yml::TAG_NULL, c4::yml::TAG_OMAP, c4::yml::TAG_PAIRS, c4::yml::TAG_SEQ, c4::yml::TAG_SET, c4::yml::TAG_STR, c4::yml::TAG_TIMESTAMP, c4::yml::TAG_VALUE, and c4::yml::TAG_YAML.
Referenced by c4::yml::normalize_tag(), c4::yml::normalize_tag_long(), and sample::sample_tags().
| csubstr c4::yml::from_tag | ( | YamlTag_e | tag | ) |
Definition at line 163 of file tag.cpp.
References c4::yml::TAG_BINARY, c4::yml::TAG_BOOL, c4::yml::TAG_FLOAT, c4::yml::TAG_INT, c4::yml::TAG_MAP, c4::yml::TAG_MERGE, c4::yml::TAG_NONE, c4::yml::TAG_NULL, c4::yml::TAG_OMAP, c4::yml::TAG_PAIRS, c4::yml::TAG_SEQ, c4::yml::TAG_SET, c4::yml::TAG_STR, c4::yml::TAG_TIMESTAMP, c4::yml::TAG_VALUE, and c4::yml::TAG_YAML.
Referenced by c4::yml::normalize_tag(), and sample::sample_tags().
| csubstr c4::yml::from_tag_long | ( | YamlTag_e | tag | ) |
Definition at line 123 of file tag.cpp.
References c4::yml::TAG_BINARY, c4::yml::TAG_BOOL, c4::yml::TAG_FLOAT, c4::yml::TAG_INT, c4::yml::TAG_MAP, c4::yml::TAG_MERGE, c4::yml::TAG_NONE, c4::yml::TAG_NULL, c4::yml::TAG_OMAP, c4::yml::TAG_PAIRS, c4::yml::TAG_SEQ, c4::yml::TAG_SET, c4::yml::TAG_STR, c4::yml::TAG_TIMESTAMP, c4::yml::TAG_VALUE, and c4::yml::TAG_YAML.
Referenced by c4::yml::normalize_tag_long(), and sample::sample_tags().
| csubstr c4::yml::normalize_tag | ( | csubstr | tag | ) |
Definition at line 19 of file tag.cpp.
References c4::yml::from_tag(), c4::yml::TAG_NONE, and c4::yml::to_tag().
Referenced by sample::sample_tags().
| csubstr c4::yml::normalize_tag_long | ( | csubstr | tag | ) |
Definition at line 31 of file tag.cpp.
References c4::yml::from_tag_long(), c4::yml::TAG_NONE, and c4::yml::to_tag().
Referenced by c4::yml::normalize_tag_long(), and sample::sample_tags().
| csubstr c4::yml::normalize_tag_long | ( | csubstr | tag, |
| substr | output | ||
| ) |
Definition at line 43 of file tag.cpp.
References c4::yml::normalize_tag_long().
| bool c4::yml::is_custom_tag | ( | csubstr | tag | ) |
Definition at line 9 of file tag.cpp.
References c4::yml::npos.
Referenced by c4::yml::Tree::resolve_tag().