Move Lexer to u16string handling, for unicode support
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -23,8 +23,9 @@ class Script {
|
||||
shared_ptr<ScriptType> _returnType;
|
||||
|
||||
explicit Script();
|
||||
void Parse(const string& script);
|
||||
void Parse(const u16string& script);
|
||||
public:
|
||||
static Script* Create(const u16string& script);
|
||||
static Script* Create(const string& script);
|
||||
DiagnosticsHolder* Diagnostics;
|
||||
|
||||
@@ -42,11 +43,11 @@ public:
|
||||
|
||||
EvalValue* GetLastValue();
|
||||
|
||||
EvalValue* GetVariable(const string& key);
|
||||
bool HasVariable(const string& key);
|
||||
EvalValue* GetVariable(const u16string& key);
|
||||
bool HasVariable(const u16string& key);
|
||||
|
||||
shared_ptr<EvalValue> CallFunction(const string& key, const vector<EvalValue*>& variables);
|
||||
bool HasFunction(const string& key);
|
||||
shared_ptr<EvalValue> CallFunction(const u16string& key, const vector<EvalValue*>& variables);
|
||||
bool HasFunction(const u16string& key);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user