Euphoria
|
textfileparser.h
Go to the documentation of this file.
std::shared_ptr< Textfile > create_from_string(const std::string &str)
Definition: textfileparser.cc:63
Definition: argparse.cc:45
bool expect_char(char c)
if peekchar(0) is c then it is read and function returns true, otherwise false
Definition: textfileparser.cc:118
TextfileParser(std::shared_ptr< detail::Textfile > afile)
Definition: textfileparser.cc:90
void skip_spaces(bool include_newline)
Definition: textfileparser.cc:285
std::string peek_string(int advance=0)
like PeekChar but returns human readable strings for some chars
Definition: textfileparser.cc:109
std::string read_to_end_of_line()
Definition: textfileparser.cc:252
std::shared_ptr< detail::Textfile > file
Definition: textfileparser.h:43
static TextfileParser from_string(const std::string &str)
Definition: textfileparser.cc:96
char peek_char(int advance=0)
advance = 0 - next char, 1-the one after that, negative values are not allowed
Definition: textfileparser.cc:102
Definition: textfileparser.h:11
Textfile()=default
virtual char peek(int advance)=0
Textfile(const Textfile &)=delete
void operator=(Textfile &&)=delete
virtual bool has_more() const =0
void operator=(const Textfile &)=delete
Textfile(Textfile &&)=delete
virtual char read()=0
virtual ~Textfile()=default