rapidyaml  0.16.0
parseandemitYAML,anddoitfast
tag.hpp File Reference
#include <c4/yml/common.hpp>
#include <c4/yml/detail/stack.hpp>

Go to the source code of this file.

Classes

struct  c4::yml::TagCache
 Accelerator structure to reduce memory requirements by enabling reuse of resolved tags. More...
 
struct  c4::yml::TagCache::Entry
 
struct  c4::yml::TagCache::LookupResult
 
struct  c4::yml::TagDirective
 
struct  c4::yml::TagDirectiveRange
 
struct  c4::yml::TagDirectives
 

Namespaces

 c4
 
 c4::yml
 

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...