Implement SVG in OT support.

This commit is contained in:
bruvzg
2022-06-14 10:29:58 +03:00
parent 191c8ed12f
commit d77902f33a
18 changed files with 1304 additions and 29 deletions

View File

@ -65,8 +65,9 @@ public:
};
private:
char *data = nullptr;
char *P = nullptr;
char *data_copy = nullptr;
const char *data = nullptr;
const char *P = nullptr;
uint64_t length = 0;
uint64_t current_line = 0;
String node_name;
@ -81,7 +82,7 @@ private:
Vector<Attribute> attributes;
bool _set_text(char *start, char *end);
bool _set_text(const char *start, const char *end);
void _parse_closing_xml_element();
void _ignore_definition();
bool _parse_cdata();
@ -118,6 +119,7 @@ public:
Error open(const String &p_path);
Error open_buffer(const Vector<uint8_t> &p_buffer);
Error _open_buffer(const uint8_t *p_buffer, size_t p_size);
void close();