create_parse_error_output¶
Defined in header: <orcus/stream.hpp>
-
std::string orcus::create_parse_error_output(std::string_view strm, std::ptrdiff_t offset)¶
Generate a sensible error output for parse error including the line where the error occurred and the offset of the error position on that line.
- Parameters:
strm – entire character stream where the error occurred.
offset – offset of the error position within the stream.
- Returns:
string formatted to be usable as an error message for stdout.