|
rapidyaml
0.13.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 () RYML_NOEXCEPT=default | |
| void | reset_with_next_line (substr buf, size_t start) RYML_NOEXCEPT |
| size_t | current_col () const RYML_NOEXCEPT |
| size_t | current_col (csubstr s) const RYML_NOEXCEPT |
Public Attributes | |
| substr | rem |
| current line remainder, without newline characters More... | |
| substr | full |
full line, including newline characters \n and \r More... | |
| size_t | num_cols |
| number of columns in the line, excluding newline characters (ie the initial size of rem) More... | |
| size_t | indentation |
| number of spaces on the beginning of the line. More... | |
Helper to control the line contents while parsing a buffer.
Definition at line 56 of file parser_state.hpp.
|
default |
|
inline |
Definition at line 66 of file parser_state.hpp.
|
inline |
|
inline |
Definition at line 98 of file parser_state.hpp.
| substr c4::yml::LineContents::rem |
current line remainder, without newline characters
Definition at line 58 of file parser_state.hpp.
| substr c4::yml::LineContents::full |
full line, including newline characters \n and \r
Definition at line 59 of file parser_state.hpp.
| size_t c4::yml::LineContents::num_cols |
number of columns in the line, excluding newline characters (ie the initial size of rem)
Definition at line 60 of file parser_state.hpp.
| size_t c4::yml::LineContents::indentation |
number of spaces on the beginning of the line.
Definition at line 62 of file parser_state.hpp.