26 #if ! defined (octave_file_info_h)
27 #define octave_file_info_h 1
29 #include "octave-config.h"
90 static std::string
snarf_file (
const std::string& fname);
size_t num_lines(void) const
sys::time timestamp(void) const
std::string get_line(size_t line) const
std::deque< std::string > get_lines(size_t line, size_t num_lines) const
static std::string snarf_file(const std::string &fname)
file_info(const std::string &text, const sys::time ×tamp)
std::string text(void) const
std::vector< size_t > m_offsets
file_info(const file_info &)=default
std::vector< size_t > line_offsets(void) const
static std::vector< size_t > get_line_offsets(const std::string &buf)
file_info & operator=(const file_info &)=default
file_info(const std::string &fname)