diff options
| author | Juan Linietsky | 2015-12-31 00:54:00 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-12-31 00:54:00 -0300 |
| commit | b60a3e72028349493effe26811725d420c7e125b (patch) | |
| tree | 92f209cc128b6c62e8197e3aa4970c1313403b75 /core/variant_parser.h | |
| parent | 335c52ba03ecbccd0c9af8f9278b69da09a3e931 (diff) | |
| download | godot-b60a3e72028349493effe26811725d420c7e125b.tar.gz godot-b60a3e72028349493effe26811725d420c7e125b.tar.zst godot-b60a3e72028349493effe26811725d420c7e125b.zip | |
Diffstat (limited to 'core/variant_parser.h')
| -rw-r--r-- | core/variant_parser.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/variant_parser.h b/core/variant_parser.h index 2bfb244fc..831876705 100644 --- a/core/variant_parser.h +++ b/core/variant_parser.h @@ -32,6 +32,19 @@ public: }; + struct StreamString : public Stream { + + String s; + int pos; + + virtual CharType get_char(); + virtual bool is_utf8() const; + virtual bool is_eof() const; + + StreamString() { pos=0; } + + }; + typedef Error (*ParseResourceFunc)(void* p_self, Stream* p_stream,Ref<Resource>& r_res,int &line,String &r_err_str); struct ResourceParser { |
