[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
parent
0864f12f0d
commit
80b8eff6aa
94 changed files with 4889 additions and 1686 deletions
|
|
@ -54,7 +54,7 @@ inline void pop_back(T &container) {
|
|||
}
|
||||
|
||||
// TODO Copied from TextEdit private, would be nice to extract it in a single place
|
||||
static bool is_text_char(CharType c) {
|
||||
static bool is_text_char(char32_t c) {
|
||||
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_';
|
||||
}
|
||||
|
||||
|
|
@ -854,7 +854,7 @@ public:
|
|||
String get_line(FileAccess *f) {
|
||||
_line_buffer.clear();
|
||||
|
||||
CharType c = f->get_8();
|
||||
char32_t c = f->get_8();
|
||||
|
||||
while (!f->eof_reached()) {
|
||||
if (c == '\n') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue