summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fpdfapi/parser/cpdf_document.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp
index f34d433287..c23637e8fa 100644
--- a/core/fpdfapi/parser/cpdf_document.cpp
+++ b/core/fpdfapi/parser/cpdf_document.cpp
@@ -38,7 +38,7 @@ namespace {
const int FX_MAX_PAGE_LEVEL = 1024;
-const uint16_t g_FX_CP874Unicodes[128] = {
+const uint16_t g_FX_MSDOSThaiUnicodes[128] = {
0x20AC, 0x0000, 0x0000, 0x0000, 0x0000, 0x2026, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x0000, 0x0000, 0x0000,
@@ -55,7 +55,7 @@ const uint16_t g_FX_CP874Unicodes[128] = {
0x0E55, 0x0E56, 0x0E57, 0x0E58, 0x0E59, 0x0E5A, 0x0E5B, 0x0000, 0x0000,
0x0000, 0x0000,
};
-const uint16_t g_FX_CP1250Unicodes[128] = {
+const uint16_t g_FX_MSWinEasternEuropeanUnicodes[128] = {
0x20AC, 0x0000, 0x201A, 0x0000, 0x201E, 0x2026, 0x2020, 0x2021, 0x0000,
0x2030, 0x0160, 0x2039, 0x015A, 0x0164, 0x017D, 0x0179, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x0000, 0x2122, 0x0161,
@@ -72,7 +72,7 @@ const uint16_t g_FX_CP1250Unicodes[128] = {
0x0151, 0x00F6, 0x00F7, 0x0159, 0x016F, 0x00FA, 0x0171, 0x00FC, 0x00FD,
0x0163, 0x02D9,
};
-const uint16_t g_FX_CP1251Unicodes[128] = {
+const uint16_t g_FX_MSWinCyrillicUnicodes[128] = {
0x0402, 0x0403, 0x201A, 0x0453, 0x201E, 0x2026, 0x2020, 0x2021, 0x20AC,
0x2030, 0x0409, 0x2039, 0x040A, 0x040C, 0x040B, 0x040F, 0x0452, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x0000, 0x2122, 0x0459,
@@ -89,7 +89,7 @@ const uint16_t g_FX_CP1251Unicodes[128] = {
0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D,
0x044E, 0x044F,
};
-const uint16_t g_FX_CP1253Unicodes[128] = {
+const uint16_t g_FX_MSWinGreekUnicodes[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, 0x0000,
0x2030, 0x0000, 0x2039, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x0000, 0x2122, 0x0000,
@@ -106,7 +106,7 @@ const uint16_t g_FX_CP1253Unicodes[128] = {
0x03C5, 0x03C6, 0x03C7, 0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03CC, 0x03CD,
0x03CE, 0x0000,
};
-const uint16_t g_FX_CP1254Unicodes[128] = {
+const uint16_t g_FX_MSWinTurkishUnicodes[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, 0x02C6,
0x2030, 0x0160, 0x2039, 0x0152, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x02DC, 0x2122, 0x0161,
@@ -123,7 +123,7 @@ const uint16_t g_FX_CP1254Unicodes[128] = {
0x00F5, 0x00F6, 0x00F7, 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x0131,
0x015F, 0x00FF,
};
-const uint16_t g_FX_CP1255Unicodes[128] = {
+const uint16_t g_FX_MSWinHebrewUnicodes[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, 0x02C6,
0x2030, 0x0000, 0x2039, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x02DC, 0x2122, 0x0000,
@@ -140,7 +140,7 @@ const uint16_t g_FX_CP1255Unicodes[128] = {
0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x0000, 0x0000, 0x200E,
0x200F, 0x0000,
};
-const uint16_t g_FX_CP1256Unicodes[128] = {
+const uint16_t g_FX_MSWinArabicUnicodes[128] = {
0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, 0x02C6,
0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, 0x06AF, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x06A9, 0x2122, 0x0691,
@@ -157,7 +157,7 @@ const uint16_t g_FX_CP1256Unicodes[128] = {
0x064F, 0x0650, 0x00F7, 0x0651, 0x00F9, 0x0652, 0x00FB, 0x00FC, 0x200E,
0x200F, 0x06D2,
};
-const uint16_t g_FX_CP1257Unicodes[128] = {
+const uint16_t g_FX_MSWinBalticUnicodes[128] = {
0x20AC, 0x0000, 0x201A, 0x0000, 0x201E, 0x2026, 0x2020, 0x2021, 0x0000,
0x2030, 0x0000, 0x2039, 0x0000, 0x00A8, 0x02C7, 0x00B8, 0x0000, 0x2018,
0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, 0x0000, 0x2122, 0x0000,
@@ -181,14 +181,14 @@ struct FX_CharsetUnicodes {
};
const FX_CharsetUnicodes g_FX_CharsetUnicodes[] = {
- {FX_CHARSET_Thai, g_FX_CP874Unicodes},
- {FX_CHARSET_MSWin_EasternEuropean, g_FX_CP1250Unicodes},
- {FX_CHARSET_MSWin_Cyrillic, g_FX_CP1251Unicodes},
- {FX_CHARSET_MSWin_Greek, g_FX_CP1253Unicodes},
- {FX_CHARSET_MSWin_Turkish, g_FX_CP1254Unicodes},
- {FX_CHARSET_MSWin_Hebrew, g_FX_CP1255Unicodes},
- {FX_CHARSET_MSWin_Arabic, g_FX_CP1256Unicodes},
- {FX_CHARSET_MSWin_Baltic, g_FX_CP1257Unicodes},
+ {FX_CHARSET_Thai, g_FX_MSDOSThaiUnicodes},
+ {FX_CHARSET_MSWin_EasternEuropean, g_FX_MSWinEasternEuropeanUnicodes},
+ {FX_CHARSET_MSWin_Cyrillic, g_FX_MSWinCyrillicUnicodes},
+ {FX_CHARSET_MSWin_Greek, g_FX_MSWinGreekUnicodes},
+ {FX_CHARSET_MSWin_Turkish, g_FX_MSWinTurkishUnicodes},
+ {FX_CHARSET_MSWin_Hebrew, g_FX_MSWinHebrewUnicodes},
+ {FX_CHARSET_MSWin_Arabic, g_FX_MSWinArabicUnicodes},
+ {FX_CHARSET_MSWin_Baltic, g_FX_MSWinBalticUnicodes},
};
void InsertWidthArrayImpl(int* widths, int size, CPDF_Array* pWidthArray) {