Merge pull request #26760 from Xrayez/26744-fix-string-to-lower

Reorder reverse caps characters table for string lower case conversion
This commit is contained in:
Rémi Verschelde 2019-04-08 10:48:15 +02:00 committed by GitHub
commit 1ca555f1fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 680 additions and 666 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1053,6 +1053,19 @@ bool test_33() {
return empty.parse_utf8(NULL, -1) == true;
}
bool test_34() {
OS::get_singleton()->print("\n\nTest 34: Cyrillic to_lower()\n");
String upper = L"АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ";
String lower = L"абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
String test = upper.to_lower();
bool state = test == lower;
return state;
}
typedef bool (*TestFunc)(void);
TestFunc test_funcs[] = {
@ -1090,6 +1103,7 @@ TestFunc test_funcs[] = {
test_31,
test_32,
test_33,
test_34,
0
};