1#ifndef C4_YML_SCALAR_STYLE_HPP_
2#define C4_YML_SCALAR_STYLE_HPP_
6#ifndef C4_YML_NODE_TYPE_HPP_
75RYML_DEPRECATED(
"use scalar_style_query_plain_{flow,block}()")
76inline
bool scalar_style_query_plain(
csubstr s,
bool flow=true) noexcept
80RYML_DEPRECATED(
"use scalar_style_choose_{flow,block}()")
81inline NodeType scalar_style_choose(
csubstr s,
bool flow=true) noexcept
85RYML_DEPRECATED(
"use scalar_style_choose_json()")
@ SCALAR_SQUO
mask of KEY_SQUO|VAL_SQUO,
@ SCALAR_DQUO
mask of KEY_DQUO|VAL_DQUO,
@ SCALAR_PLAIN
mask of KEY_PLAIN|VAL_PLAIN,
bool scalar_style_query_plain_block(csubstr scalar) noexcept
query whether a scalar can be encoded using plain style while in block mode.
NodeType scalar_style_choose_json(csubstr scalar) noexcept
choose a json scalar style based on the scalar's contents
NodeType scalar_style_choose_flow(csubstr scalar) noexcept
choose a YAML scalar style based on the scalar's contents, while in flow mode.
bool scalar_style_query_squo(csubstr scalar) noexcept
query whether a scalar can be encoded using single quotes.
bool scalar_style_query_plain_flow(csubstr scalar) noexcept
query whether a scalar can be encoded using plain style while in flow mode.
NodeType scalar_style_choose_block(csubstr scalar) noexcept
choose a YAML scalar style based on the scalar's contents, while in block mode.
basic_substring< const char > csubstr
an immutable string view
Wraps a type_bits mask of NodeTypeBits flags with some syntactic sugar and predicates.