8#ifndef INCLUDED_ORCUS_STREAM_HPP
9#define INCLUDED_ORCUS_STREAM_HPP
27 std::unique_ptr<impl> mp_impl;
73 void load(std::string_view filepath);
82 std::string_view str()
const;
94 std::unique_ptr<impl> mp_impl;
104 const char* data()
const;
117 std::string_view str()
const;
129 line_with_offset(std::string _line, std::size_t _line_number, std::size_t _offset_on_line);
147ORCUS_PSR_DLLPUBLIC std::string create_parse_error_output(std::string_view strm, std::ptrdiff_t offset);
162ORCUS_PSR_DLLPUBLIC
line_with_offset locate_line_with_offset(std::string_view strm, std::ptrdiff_t offset);
175ORCUS_PSR_DLLPUBLIC std::size_t locate_first_different_char(std::string_view left, std::string_view right);
183ORCUS_PSR_DLLPUBLIC std::size_t calc_logical_string_length(std::string_view s);
void swap(file_content &other)
void load(std::string_view filepath)
const char * data() const
Definition stream.hpp:121
std::size_t offset_on_line
Definition stream.hpp:127
std::size_t line_number
Definition stream.hpp:125
std::string line
Definition stream.hpp:123