struct
source_regionA source document region.
auto tbl = toml::parse_file("config.toml"sv); if (auto server = tbl.get("server")) { std::cout << "begin: "sv << server->source().begin << "\n"; std::cout << "end: "sv << server->source().end << "\n"; std::cout << "path: "sv << *server->source().path << "\n"; }
begin: line 3, column 1 end: line 3, column 22 path: config.toml
Public functions
-
auto wide_path() const → optional<std::
wstring> noexcept - The path to the corresponding source document as a wide-string.
Public variables
-
source_
position begin - The beginning of the region (inclusive).
-
source_
position end - The end of the region (exclusive).
-
source_
path_ ptr path - The path to the corresponding source document.
Function documentation
optional<std:: wstring> toml:: source_region:: wide_path() const noexcept
The path to the corresponding source document as a wide-string.
Variable documentation
source_ path_ ptr toml:: source_region:: path
The path to the corresponding source document.