rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
scalar_style.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  c4
namespace  c4::yml

Functions

bool c4::yml::scalar_style_query_squo (csubstr scalar) noexcept
 query whether a scalar can be encoded using single quotes.
bool c4::yml::scalar_style_query_plain_flow (csubstr scalar) noexcept
 query whether a scalar can be encoded using plain style while in flow mode.
bool c4::yml::scalar_style_query_plain_block (csubstr scalar) noexcept
 query whether a scalar can be encoded using plain style while in block mode.
NodeType c4::yml::scalar_style_choose_flow (csubstr scalar) noexcept
 choose a YAML scalar style based on the scalar's contents, while in flow mode.
NodeType c4::yml::scalar_style_choose_block (csubstr scalar) noexcept
 choose a YAML scalar style based on the scalar's contents, while in block mode.
NodeType c4::yml::scalar_style_choose_json (csubstr scalar) noexcept
 choose a json scalar style based on the scalar's contents