|
rapidyaml 0.15.1
parse and emit YAML, and do it fast
|
Options to give to the parser to control its behavior. More...
#include <parse_options.hpp>
Public Member Functions | |
| ParserOptions () noexcept=default | |
detection of @ref FLOW_ML container style | |
| ParserOptions & | detect_flow_ml (bool enabled) noexcept |
| enable/disable detection of flow multiline container style. | |
| bool | detect_flow_ml () const noexcept |
| query status of detection of flow multiline container style. | |
| ParserOptions & | flow_ml_style (NodeType style) noexcept |
| choose the default style of multiline flow containers, when a container is detected as flow multiline. | |
| NodeType | flow_ml_style () const noexcept |
resolution of tags | |
| ParserOptions & | resolve_tags (bool enabled) noexcept |
| enable/disable resolution of YAML tags during parsing. | |
| bool | resolve_tags () const noexcept |
| query status of tag resolution setting. | |
| ParserOptions & | resolve_tags_all (bool enabled) noexcept |
| When resolve_tags() is enabled, resolve not just prefixed tags of the form. | |
| bool | resolve_tags_all () const noexcept |
| query status of non-prefixed tag resolution setting. | |
source location tracking | |
| ParserOptions & | locations (bool enabled) noexcept |
| enable/disable source location tracking. | |
| bool | locations () const noexcept |
| query source location tracking status | |
scalar filtering status (experimental; disable at your discretion) | |
| ParserOptions & | scalar_filtering (bool enabled) noexcept |
| enable/disable scalar filtering while parsing. | |
| bool | scalar_filtering () const noexcept |
| query scalar filtering status | |
Options to give to the parser to control its behavior.
Definition at line 21 of file parse_options.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
enable/disable detection of flow multiline container style.
When enabled, the parser will set either FLOW_ML1 or FLOW_MLN flow multiline style as the style of flow containers which have the terminating bracket on a line different from that of the opening bracket. Default is to detect flow multiline. Use ParserOptions::flow_ml_style() to choose between the FLOW_ML1 or FLOW_MLN styles.
Definition at line 62 of file parse_options.hpp.
|
inlinenoexcept |
query status of detection of flow multiline container style.
Definition at line 67 of file parse_options.hpp.
|
inlinenoexcept |
choose the default style of multiline flow containers, when a container is detected as flow multiline.
Input should be FLOW_ML1 or FLOW_MLN . Default is FLOW_ML1 (the old behavior).
Definition at line 73 of file parse_options.hpp.
|
inlinenoexcept |
Definition at line 79 of file parse_options.hpp.
|
inlinenoexcept |
enable/disable resolution of YAML tags during parsing.
When enabled, tags are resolved according to existing tag directives. Disabled by default. See also ParserOptions::resolve_tags_all().
Definition at line 92 of file parse_options.hpp.
|
inlinenoexcept |
query status of tag resolution setting.
Definition at line 97 of file parse_options.hpp.
|
inlinenoexcept |
When resolve_tags() is enabled, resolve not just prefixed tags of the form.
!handle!tag
, but also non-prefixed tags (
!!tag
and
!tag!
). Disabled by default.
Definition at line 102 of file parse_options.hpp.
|
inlinenoexcept |
query status of non-prefixed tag resolution setting.
Definition at line 107 of file parse_options.hpp.
|
inlinenoexcept |
enable/disable source location tracking.
Disabled by default.
Definition at line 117 of file parse_options.hpp.
|
inlinenoexcept |
query source location tracking status
Definition at line 122 of file parse_options.hpp.
|
inlinenoexcept |
enable/disable scalar filtering while parsing.
Enabled by default.
Definition at line 132 of file parse_options.hpp.
|
inlinenoexcept |
query scalar filtering status
Definition at line 137 of file parse_options.hpp.