You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user