Euphoria
|
textfileparser.cc
Go to the documentation of this file.
std::string from_char_to_string(char c, CharToStringStyle style)
Definition: stringutils.cc:168
@ smart
std::shared_ptr< Textfile > create_from_string(const std::string &str)
Definition: textfileparser.cc:63
Definition: argparse.cc:45
@ quote
bool is_within_inclusive_as_int(int min, int c, int max)
Definition: numeric.cc:116
String utility functions.
Definition: stringbuilder.h:9
std::string to_string()
Complete the builder and return the resulting string.
Definition: stringbuilder.cc:67
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
char peek(int advance) override
Definition: textfileparser.cc:33
std::size_t next_position
Definition: textfileparser.cc:23
bool has_more() const override
Definition: textfileparser.cc:27
Definition: textfileparser.h:11