|
rapidyaml
0.11.1
parse and emit YAML, and do it fast
|
#include "c4/yml/common.hpp"Go to the source code of this file.
Classes | |
| struct | c4::yml::NodeType |
| wraps a NodeType_e element with some syntactic sugar and predicates More... | |
Namespaces | |
| c4 | |
| (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message. | |
| c4::yml | |
Macros | |
| #define | __(v) (type_bits(1) << v) |
Typedefs | |
| using | c4::yml::type_bits = uint32_t |
| the integral type necessary to cover all the bits for NodeType_e More... | |
Enumerations | |
| enum | c4::yml::NodeType_e : type_bits { c4::yml::NOTYPE = 0 , c4::yml::KEY = __(0) , c4::yml::VAL = __(1) , c4::yml::MAP = __(2) , c4::yml::SEQ = __(3) , c4::yml::DOC = __(4) , c4::yml::STREAM = __(5)|SEQ , c4::yml::KEYREF = __(6) , c4::yml::VALREF = __(7) , c4::yml::KEYANCH = __(8) , c4::yml::VALANCH = __(9) , c4::yml::KEYTAG = __(10) , c4::yml::VALTAG = __(11) , c4::yml::KEYNIL = __(12) , c4::yml::VALNIL = __(13) , c4::yml::_TYMASK = __(14)-1 , c4::yml::KEY_UNFILT = __(14) , c4::yml::VAL_UNFILT = __(15) , c4::yml::FLOW_SL = __(16) , c4::yml::FLOW_ML = __(17) , c4::yml::BLOCK = __(18) , c4::yml::KEY_LITERAL = __(19) , c4::yml::VAL_LITERAL = __(20) , c4::yml::KEY_FOLDED = __(21) , c4::yml::VAL_FOLDED = __(22) , c4::yml::KEY_SQUO = __(23) , c4::yml::VAL_SQUO = __(24) , c4::yml::KEY_DQUO = __(25) , c4::yml::VAL_DQUO = __(26) , c4::yml::KEY_PLAIN = __(27) , c4::yml::VAL_PLAIN = __(28) , c4::yml::KEYVAL = KEY|VAL , c4::yml::KEYSEQ = KEY|SEQ , c4::yml::KEYMAP = KEY|MAP , c4::yml::DOCMAP = DOC|MAP , c4::yml::DOCSEQ = DOC|SEQ , c4::yml::DOCVAL = DOC|VAL , c4::yml::SCALAR_LITERAL = KEY_LITERAL|VAL_LITERAL , c4::yml::SCALAR_FOLDED = KEY_FOLDED|VAL_FOLDED , c4::yml::SCALAR_SQUO = KEY_SQUO|VAL_SQUO , c4::yml::SCALAR_DQUO = KEY_DQUO|VAL_DQUO , c4::yml::SCALAR_PLAIN = KEY_PLAIN|VAL_PLAIN , c4::yml::KEYQUO = KEY_SQUO|KEY_DQUO|KEY_FOLDED|KEY_LITERAL , c4::yml::VALQUO = VAL_SQUO|VAL_DQUO|VAL_FOLDED|VAL_LITERAL , c4::yml::KEY_STYLE = KEY_LITERAL|KEY_FOLDED|KEY_SQUO|KEY_DQUO|KEY_PLAIN , c4::yml::VAL_STYLE = VAL_LITERAL|VAL_FOLDED|VAL_SQUO|VAL_DQUO|VAL_PLAIN , c4::yml::SCALAR_STYLE = KEY_STYLE|VAL_STYLE , c4::yml::CONTAINER_STYLE_FLOW = FLOW_SL|FLOW_ML , c4::yml::CONTAINER_STYLE_BLOCK = BLOCK , c4::yml::CONTAINER_STYLE = FLOW_SL|FLOW_ML|BLOCK , c4::yml::STYLE = SCALAR_STYLE | CONTAINER_STYLE , c4::yml::_KEYMASK = KEY | KEYQUO | KEYANCH | KEYREF | KEYTAG , c4::yml::_VALMASK = VAL | VALQUO | VALANCH | VALREF | VALTAG } |
| a bit mask for marking node types and styles More... | |
Functions | |
| constexpr C4_CONST NodeType_e | c4::yml::operator| (NodeType_e lhs, NodeType_e rhs) noexcept |
| constexpr C4_CONST NodeType_e | c4::yml::operator& (NodeType_e lhs, NodeType_e rhs) noexcept |
| constexpr C4_CONST NodeType_e | c4::yml::operator>> (NodeType_e bits, uint32_t n) noexcept |
| constexpr C4_CONST NodeType_e | c4::yml::operator<< (NodeType_e bits, uint32_t n) noexcept |
| constexpr C4_CONST NodeType_e | c4::yml::operator~ (NodeType_e bits) noexcept |
| NodeType_e & | c4::yml::operator&= (NodeType_e &subject, NodeType_e bits) noexcept |
| NodeType_e & | c4::yml::operator|= (NodeType_e &subject, NodeType_e bits) noexcept |
scalar style helpers | |
| NodeType_e | c4::yml::scalar_style_choose (csubstr scalar) noexcept |
| choose a YAML emitting style based on the scalar's contents More... | |
| NodeType_e | c4::yml::scalar_style_json_choose (csubstr scalar) noexcept |
| choose a json style based on the scalar's contents More... | |
| bool | c4::yml::scalar_style_query_squo (csubstr s) noexcept |
| query whether a scalar can be encoded using single quotes. More... | |
| bool | c4::yml::scalar_style_query_plain (csubstr s) noexcept |
| query whether a scalar can be encoded using plain style (no quotes, not a literal/folded block scalar). More... | |
| bool | c4::yml::scalar_is_null (csubstr s) noexcept |
| YAML-sense query of nullity. More... | |
| #define __ | ( | v | ) | (type_bits(1) << v) |
Definition at line 34 of file node_type.hpp.