8#ifndef INCLUDED_ORCUS_STREAM_HPP
9#define INCLUDED_ORCUS_STREAM_HPP
27 std::unique_ptr<impl> mp_impl;
72 void load(std::string_view filepath);
81 std::string_view str()
const;
93 std::unique_ptr<impl> mp_impl;
103 const char* data()
const;
116 std::string_view str()
const;
128 line_with_offset(std::string _line, std::size_t _line_number, std::size_t _offset_on_line);
146ORCUS_PSR_DLLPUBLIC std::string create_parse_error_output(std::string_view strm, std::ptrdiff_t offset);
161ORCUS_PSR_DLLPUBLIC
line_with_offset locate_line_with_offset(std::string_view strm, std::ptrdiff_t offset);
174ORCUS_PSR_DLLPUBLIC
size_t locate_first_different_char(std::string_view left, std::string_view right);
182ORCUS_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:120
std::size_t offset_on_line
Definition stream.hpp:126
std::size_t line_number
Definition stream.hpp:124
std::string line
Definition stream.hpp:122