1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Cosmetic: apply clang-format

This commit is contained in:
Mathieu Schroeter 2017-10-23 17:32:18 +02:00
parent 6044ace3c3
commit 6da7be9e78
3 changed files with 15 additions and 12 deletions

View File

@ -82,7 +82,8 @@ enum class Language {
fr = 2, fr = 2,
de = 3, de = 3,
it = 4, it = 4,
// Left some space for Korean and Hebrew as I think original translations should be first, see issue #23 // Left some space for Korean and Hebrew as I think original translations
// should be first, see issue #23
pl = 7, pl = 7,
}; };

View File

@ -62,11 +62,13 @@ GetOffset (const char *& c)
if (static_cast<unsigned char> (*c) == 0xC5) if (static_cast<unsigned char> (*c) == 0xC5)
c++; c++;
if (GetLocale() != "pl") if (GetLocale () != "pl")
{ {
// Do not use the 'standard' accents table with Polish locale // Do not use the 'standard' accents table with Polish locale
// This is required because we check only last byte of UTF-8 and some characters overlap // This is required because we check only last byte of UTF-8 and some
// TODO: In the future, this ugly hack should be replaced with proper UTF-8 parsing // characters overlap
// TODO: In the future, this ugly hack should be replaced with proper UTF-8
// parsing
for (unsigned int i = 0; i < countof (table_accents); ++i) for (unsigned int i = 0; i < countof (table_accents); ++i)
if ((unsigned char) *c == table_accents[i]) if ((unsigned char) *c == table_accents[i])
return 15 + i; return 15 + i;