mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic
This commit is contained in:
parent
2e2847f3f0
commit
1014213645
12
src/text.cxx
12
src/text.cxx
@ -36,12 +36,10 @@ GetOffset (const char *& c)
|
|||||||
{
|
{
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
static const unsigned char table_accents[] = {
|
static const unsigned char table_accents[] = {
|
||||||
/* ü à â é è ë ê ï */
|
/* ü à â é è ë ê ï */
|
||||||
/* 0xFC, 0xE0, 0xE2, 0xE9, 0xE8, 0xEB, 0xEA, 0xEF, // CP1252 */
|
0xBC, 0xA0, 0xA2, 0xA9, 0xA8, 0xAB, 0xAA, 0xAF, /* UTF-8 */
|
||||||
0xBC, 0xA0, 0xA2, 0xA9, 0xA8, 0xAB, 0xAA, 0xAF, // UTF-8
|
/* î ô ù û ä ö ç */
|
||||||
/* î ô ù û ä ö ç */
|
0xAE, 0xB4, 0xB9, 0xBB, 0xA4, 0xB6, 0xA7, /* UTF-8 */
|
||||||
/* 0xEE, 0xF4, 0xF9, 0xFB, 0xE4, 0xF6, 0xE7, // CP1252 */
|
|
||||||
0xAE, 0xB4, 0xB9, 0xBB, 0xA4, 0xB6, 0xA7, // UTF-8
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned char table_extended[] = {
|
static const unsigned char table_extended[] = {
|
||||||
@ -54,10 +52,8 @@ GetOffset (const char *& c)
|
|||||||
c++;
|
c++;
|
||||||
|
|
||||||
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;
|
||||||
}
|
|
||||||
|
|
||||||
for (unsigned int i = 0; i < countof (table_extended); ++i)
|
for (unsigned int i = 0; i < countof (table_extended); ++i)
|
||||||
if ((unsigned char) *c == table_extended[i])
|
if ((unsigned char) *c == table_extended[i])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user