unsigned char *&demand(long len);
public:
XMLBuffer(long buf_size=0x1000, long max_size=LONG_MAX, int del=1);
- XMLBuffer(long buf_size, const char *buf, int del=0); // writing
+ XMLBuffer(long buf_size, char *buf, int del=0); // writing
XMLBuffer(const char *buf, long buf_size, int del=0); // reading
~XMLBuffer();
int64_t get_property(const char *property, int64_t default_);
float get_property(const char *property, float default_);
double get_property(const char *property, double default_);
- const char* get_property_text(const char *property);
int set_title(const char *text);
int set_property(const char *text, const char *value);
int append_data(const char *text, long len);
char* read_text();
- int read_data_until(const char *tag_end, char *out, int len);
- int read_text_until(const char *tag_end, char *out, int len);
+ int read_data_until(const char *tag_end, char *out, int len, int skip=0);
+ int read_text_until(const char *tag_end, char *out, int len, int skip=0);
int read_tag();
int skip_tag();
int write_to_file(const char *filename);