- fixed 'I' to 'i' upper-to-lower mapping

https://forum.zdoom.org/viewtopic.php?t=64526
This commit is contained in:
alexey.lysiuk 2019-05-01 16:09:42 +03:00
parent b23958b204
commit 32aa69f4d8

View file

@ -778,7 +778,7 @@ void InitLowerUpper()
{ {
auto lower = loweruppercase[i]; auto lower = loweruppercase[i];
auto upper = loweruppercase[i + 1]; auto upper = loweruppercase[i + 1];
if (upperforlower[upper] == upper) lowerforupper[upper] = lower; // This mapping is ambiguous (see 0x0131 -> 0x0049, (small Turkish 'i' without dot.) so only pick the first match. if (lowerforupper[upper] == upper) lowerforupper[upper] = lower; // This mapping is ambiguous (see 0x0131 -> 0x0049, (small Turkish 'i' without dot.) so only pick the first match.
if (upperforlower[lower] == lower) upperforlower[lower] = upper; if (upperforlower[lower] == lower) upperforlower[lower] = upper;
isuppermap[upper] = islowermap[lower] = true; isuppermap[upper] = islowermap[lower] = true;
} }