holds a source or yaml file position, for example when an error is detected; See also location_format() and location_format_with_context().
More...
#include <common.hpp>
|
| | operator bool () const noexcept |
| | Location () noexcept |
| | Location (size_t l) noexcept |
| | Location (size_t l, size_t c) noexcept |
| | Location (size_t b, size_t l, size_t c) noexcept |
| | Location (csubstr n, size_t l) noexcept |
| | Location (csubstr n, size_t l, size_t c) noexcept |
| | Location (csubstr n, size_t b, size_t l, size_t c) noexcept |
| | Location (const char *n, size_t l) noexcept |
| | Location (const char *n, size_t l, size_t c) noexcept |
| | Location (const char *n, size_t b, size_t l, size_t c) noexcept |
|
| size_t | offset |
| | number of bytes from the beginning of the source buffer
|
| size_t | line |
| | line
|
| size_t | col |
| | column
|
| csubstr | name |
| | name of the file
|
holds a source or yaml file position, for example when an error is detected; See also location_format() and location_format_with_context().
Definition at line 228 of file common.hpp.
◆ Location() [1/10]
| c4::yml::Location::Location |
( |
| ) |
|
|
inlinenoexcept |
Definition at line 237 of file common.hpp.
@ npos
a null string position
size_t offset
number of bytes from the beginning of the source buffer
csubstr name
name of the file
◆ Location() [2/10]
| c4::yml::Location::Location |
( |
size_t | l | ) |
|
|
inlinenoexcept |
◆ Location() [3/10]
| c4::yml::Location::Location |
( |
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ Location() [4/10]
| c4::yml::Location::Location |
( |
size_t | b, |
|
|
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ Location() [5/10]
| c4::yml::Location::Location |
( |
csubstr | n, |
|
|
size_t | l ) |
|
inlinenoexcept |
◆ Location() [6/10]
| c4::yml::Location::Location |
( |
csubstr | n, |
|
|
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ Location() [7/10]
| c4::yml::Location::Location |
( |
csubstr | n, |
|
|
size_t | b, |
|
|
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ Location() [8/10]
| c4::yml::Location::Location |
( |
const char * | n, |
|
|
size_t | l ) |
|
inlinenoexcept |
Definition at line 244 of file common.hpp.
csubstr to_csubstr(const char(&s)[N]) noexcept
◆ Location() [9/10]
| c4::yml::Location::Location |
( |
const char * | n, |
|
|
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ Location() [10/10]
| c4::yml::Location::Location |
( |
const char * | n, |
|
|
size_t | b, |
|
|
size_t | l, |
|
|
size_t | c ) |
|
inlinenoexcept |
◆ operator bool()
| c4::yml::Location::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
◆ offset
| size_t c4::yml::Location::offset |
number of bytes from the beginning of the source buffer
Definition at line 230 of file common.hpp.
Referenced by Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), c4::yml::location_format(), c4::yml::location_format_with_context(), operator bool(), sample_error_parse(), and sample_location_tracking().
◆ line
| size_t c4::yml::Location::line |
line
Definition at line 231 of file common.hpp.
Referenced by Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), c4::yml::location_format(), operator bool(), sample_deserialize_error(), sample_error_parse(), sample_location_tracking(), and sample_quick_overview().
◆ col
| size_t c4::yml::Location::col |
column
Definition at line 232 of file common.hpp.
Referenced by Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), c4::yml::location_format(), c4::yml::location_format_with_context(), operator bool(), sample_deserialize_error(), sample_error_parse(), sample_location_tracking(), and sample_quick_overview().
◆ name
name of the file
Definition at line 233 of file common.hpp.
Referenced by Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), Location(), c4::yml::location_format(), operator bool(), sample_error_basic(), sample_error_parse(), sample_error_visit(), and sample_error_visit_location().
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/latest/src/c4/yml/common.hpp