10 #include "tb_tempbuffer.h"
22 bool IsEndQuote(
const char *buf_start,
const char *buf,
const char quote_type);
28 virtual void OnError(
int line_nr,
const TBStr & error) = 0;
29 virtual void OnComment(
int line_nr,
const TBStr & comment) = 0;
30 virtual void OnToken(
int line_nr,
const char *name,
TBValue &value) = 0;
31 virtual void Enter() = 0;
32 virtual void Leave() = 0;
39 virtual int GetMoreData(
char *buf,
int buf_len) = 0;
55 TBStr multi_line_token;
57 int multi_line_sub_level;
58 bool pending_multiline;
62 void ConsumeValue(
TBValue &dst_value,
char *&line);
Definition: tb_parser.h:24
bool IsEndQuote(const char *buf_start, const char *buf, const char quote_type)
Check if buf is pointing at an end quote.
Definition: tb_parser.cpp:153
void UnescapeString(char *str)
Unescape backslash codes.
Definition: tb_parser.cpp:36
TBStr is a simple string class.
Definition: tb_str.h:62
TBValue holds value of a specific type.
Definition: tb_value.h:59
Definition: tb_parser.h:35
Definition: tb_parser.h:42
TBTempBuffer manages a buffer that will be deleted on destruction.
Definition: tb_tempbuffer.h:18