summaryrefslogtreecommitdiffstats
path: root/core/io/xml_parser.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-11-14 14:32:22 +0100
committerGitHub <noreply@github.com>2022-11-14 14:32:22 +0100
commit471c42ee1fe2c84b4f248e7194a2b10b562ff508 (patch)
tree4d45b75cb5dcc0a27db299e78ae8a0e0dd6cf468 /core/io/xml_parser.h
parentf070cf9a75ad416e16c73af0f60f6a4fe41b18b8 (diff)
parentd77902f33a2390bdbeee0dbee4036e41c1e1bece (diff)
downloadredot-engine-471c42ee1fe2c84b4f248e7194a2b10b562ff508.tar.gz
Merge pull request #64530 from bruvzg/svg_in_ot
Diffstat (limited to 'core/io/xml_parser.h')
-rw-r--r--core/io/xml_parser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/io/xml_parser.h b/core/io/xml_parser.h
index aea252ddc7..be44f771dc 100644
--- a/core/io/xml_parser.h
+++ b/core/io/xml_parser.h
@@ -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();