Move Lexer to u16string handling, for unicode support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-15 17:20:27 +02:00
parent f73bd2003c
commit 3dc67ec8a0
21 changed files with 189 additions and 145 deletions

View File

@@ -104,9 +104,9 @@ public:
};
class BoundLiteralStringExpression : public BoundExpression{
const string _value;
const u16string _value;
public:
BoundLiteralStringExpression(string value, unsigned int start, unsigned int length)
BoundLiteralStringExpression(u16string value, unsigned int start, unsigned int length)
: BoundExpression(start, length, make_shared<StringScriptType>(true, HashedString::ConstHash(value.c_str()))),
_value(value)
{
@@ -116,7 +116,7 @@ public:
return BoundExpressionKind ::LiteralString;
}
const string GetValue() const{
const u16string GetValue() const{
return _value;
}
};