24class ORCUS_PSR_DLLPUBLIC file_content
27 std::unique_ptr<impl> mp_impl;
29 file_content(
const file_content&) =
delete;
30 file_content& operator= (
const file_content&) =
delete;
33 file_content(file_content&& other);
34 file_content(std::string_view filepath);
64 void swap(file_content& other);
72 void load(std::string_view filepath);
81 std::string_view str()
const;
90class ORCUS_PSR_DLLPUBLIC memory_content
93 std::unique_ptr<impl> mp_impl;
96 memory_content& operator= (
const file_content&) =
delete;
99 memory_content(std::string_view s);
100 memory_content(memory_content&& other);
103 const char* data()
const;
107 void swap(memory_content& other);
116 std::string_view str()
const;
119struct ORCUS_PSR_DLLPUBLIC line_with_offset
128 line_with_offset(std::string _line, std::size_t _line_number, std::size_t _offset_on_line);
129 line_with_offset(
const line_with_offset& other);
130 line_with_offset(line_with_offset&& other);
133 bool operator== (
const line_with_offset& other)
const;
134 bool operator!= (
const line_with_offset& other)
const;
void swap(file_content &other)
void load(std::string_view filepath)
const char * data() const