|
rapidyaml
0.8.0
parse and emit YAML, and do it fast
|
Helper to control the line contents while parsing a buffer. More...
#include <parser_state.hpp>
Public Member Functions | |
| LineContents ()=default | |
| void | reset_with_next_line (substr buf, size_t offset) |
| void | reset (substr full_, substr stripped_) |
| size_t | current_col () const RYML_NOEXCEPT |
| size_t | current_col (csubstr s) const RYML_NOEXCEPT |
Public Attributes | |
| substr | rem |
| the stripped line remainder; initially starts at the first non-space character More... | |
| size_t | indentation |
| the number of spaces on the beginning of the line More... | |
| substr | full |
| the full line, including newlines on the right More... | |
| substr | stripped |
| the stripped line, excluding newlines on the right More... | |
Helper to control the line contents while parsing a buffer.
Definition at line 51 of file parser_state.hpp.
|
default |
|
inline |
Definition at line 60 of file parser_state.hpp.
References reset().
|
inline |
Definition at line 81 of file parser_state.hpp.
References full, indentation, rem, and stripped.
Referenced by reset_with_next_line().
|
inline |
Definition at line 89 of file parser_state.hpp.
|
inline |
| substr c4::yml::LineContents::rem |
the stripped line remainder; initially starts at the first non-space character
Definition at line 53 of file parser_state.hpp.
Referenced by c4::yml::ParserState::at_line_beginning(), current_col(), and reset().
| size_t c4::yml::LineContents::indentation |
the number of spaces on the beginning of the line
Definition at line 54 of file parser_state.hpp.
Referenced by c4::yml::ParserState::indentation_eq(), c4::yml::ParserState::indentation_ge(), c4::yml::ParserState::indentation_gt(), c4::yml::ParserState::indentation_lt(), and reset().
| substr c4::yml::LineContents::full |
the full line, including newlines on the right
Definition at line 55 of file parser_state.hpp.
Referenced by c4::yml::ParserState::at_line_beginning(), current_col(), and reset().
| substr c4::yml::LineContents::stripped |
the stripped line, excluding newlines on the right
Definition at line 56 of file parser_state.hpp.
Referenced by reset().