[search] Remove Danish hacks

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2026-01-09 09:36:51 +00:00
committed by Konstantin Pastbin
parent f5d2aa503d
commit ff6568b96f

View File

@@ -196,21 +196,6 @@ UniString NormalizeAndSimplifyString(std::string_view s)
// unicode-compliant implementation of MakeLowerCase converts 'İ'
// to 'i' + 0x0307.
case 0x0130: c = 'i'; break;
// Some Danish-specific hacks.
case 0x00d8: // Ø
case 0x00f8: // ø
c = 'o';
break;
case 0x0152: // Œ
case 0x0153: // œ
c = 'o';
uniString.insert(uniString.begin() + (i++) + 1, 'e');
break;
case 0x00c6: // Æ
case 0x00e6: // æ
c = 'a';
uniString.insert(uniString.begin() + (i++) + 1, 'e');
break;
case 0x2018: //
case 0x2019: //
c = '\'';