summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-07-21 19:55:52 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-07-22 14:10:28 -0300
commitecb071b2210a5b167f078375635d9c8210b38353 (patch)
tree09aa6c0b486cbad1488603ad63843c760f348d2b /core/ustring.cpp
parent7478649b2ff4983da605594420561cd46f5d15b1 (diff)
downloadredot-engine-ecb071b2210a5b167f078375635d9c8210b38353.tar.gz
Fix upper/lower case convertion for characters >= 0x80
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r--core/ustring.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index bee5f5ffdb..bb08dd13c4 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -921,8 +921,8 @@ String String::to_upper() const {
for (int i = 0; i < upper.size(); i++) {
- const char s = upper[i];
- const char t = _find_upper(s);
+ const CharType s = upper[i];
+ const CharType t = _find_upper(s);
if (s != t) // avoid copy on write
upper[i] = t;
}
@@ -936,8 +936,8 @@ String String::to_lower() const {
for (int i = 0; i < lower.size(); i++) {
- const char s = lower[i];
- const char t = _find_lower(s);
+ const CharType s = lower[i];
+ const CharType t = _find_lower(s);
if (s != t) // avoid copy on write
lower[i] = t;
}