[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
@@ -162,7 +162,7 @@ class GetClassAndNamespace {
|
||||
} break;
|
||||
case '\'':
|
||||
case '"': {
|
||||
CharType begin_str = code[idx];
|
||||
char32_t begin_str = code[idx];
|
||||
idx++;
|
||||
String tk_string = String();
|
||||
while (true) {
|
||||
@@ -176,13 +176,13 @@ class GetClassAndNamespace {
|
||||
} else if (code[idx] == '\\') {
|
||||
//escaped characters...
|
||||
idx++;
|
||||
CharType next = code[idx];
|
||||
char32_t next = code[idx];
|
||||
if (next == 0) {
|
||||
error_str = "Unterminated String";
|
||||
error = true;
|
||||
return TK_ERROR;
|
||||
}
|
||||
CharType res = 0;
|
||||
char32_t res = 0;
|
||||
|
||||
switch (next) {
|
||||
case 'b':
|
||||
@@ -241,7 +241,7 @@ class GetClassAndNamespace {
|
||||
|
||||
if (code[idx] == '-' || (code[idx] >= '0' && code[idx] <= '9')) {
|
||||
//a number
|
||||
const CharType *rptr;
|
||||
const char32_t *rptr;
|
||||
double number = String::to_float(&code[idx], &rptr);
|
||||
idx += (rptr - &code[idx]);
|
||||
value = number;
|
||||
|
||||
Reference in New Issue
Block a user