diff options
Diffstat (limited to 'core/fpdfapi/fpdf_cmaps')
63 files changed, 160 insertions, 160 deletions
diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp index 5a45d0aa39..30968a5bea 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_CNS1CID2Unicode_5[19088] = { +const uint16_t g_FXCMAP_CNS1CID2Unicode_5[19088] = { 0xFFFD, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp index 532ecd1013..1b19edc3c4 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_B5pc_H_0[247 * 3] = { +const uint16_t g_FXCMAP_B5pc_H_0[247 * 3] = { 0x0020, 0x007E, 0x0001, 0x0080, 0x0080, 0x003D, 0x00FD, 0x00FF, 0x0060, 0xA140, 0xA158, 0x0063, 0xA159, 0xA15C, 0x35AF, 0xA15D, 0xA17E, 0x0080, 0xA1A1, 0xA1F5, 0x00A2, 0xA1F6, 0xA1F6, 0x00F8, 0xA1F7, 0xA1F7, 0x00F7, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp index 482c4db05f..b872a69ab5 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_B5pc_V_0[12 * 3] = { +const uint16_t g_FXCMAP_B5pc_V_0[12 * 3] = { 0xA14B, 0xA14B, 0x354E, 0xA15A, 0xA15A, 0x35AF, 0xA15C, 0xA15C, 0x35B1, 0xA15D, 0xA15E, 0x0082, 0xA161, 0xA162, 0x0086, 0xA165, 0xA166, 0x008A, 0xA169, 0xA16A, 0x008E, 0xA16D, 0xA16E, 0x0092, 0xA171, 0xA172, 0x0096, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp index 3d61451403..ab893832bb 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_CNS_EUC_H_0[157 * 3] = { +const uint16_t g_FXCMAP_CNS_EUC_H_0[157 * 3] = { 0x0020, 0x007E, 0x3550, 0xA1A1, 0xA1FE, 0x0063, 0xA2A1, 0xA2FE, 0x00C1, 0xA3A1, 0xA3CE, 0x011F, 0xA4A1, 0xA4FE, 0x014D, 0xA5A1, 0xA5EC, 0x01AB, 0xA5EE, 0xA5F0, 0x01F7, 0xA6A1, 0xA6BE, 0x01FA, 0xA7A1, 0xA7A1, 0x0253, @@ -62,7 +62,7 @@ const FX_WORD g_FXCMAP_CNS_EUC_H_0[157 * 3] = { 0xFDA1, 0xFDCB, 0x1741, }; -const FX_WORD g_FXCMAP_CNS_EUC_H_0_DWord[238 * 4] = { +const uint16_t g_FXCMAP_CNS_EUC_H_0_DWord[238 * 4] = { 0x8EA1, 0xA1A1, 0xA1FE, 0x0063, 0x8EA1, 0xA2A1, 0xA2FE, 0x00C1, 0x8EA1, 0xA3A1, 0xA3CE, 0x011F, 0x8EA1, 0xA4A1, 0xA4FE, 0x014D, 0x8EA1, 0xA5A1, 0xA5EC, 0x01AB, 0x8EA1, 0xA5EE, 0xA5F0, 0x01F7, 0x8EA1, 0xA6A1, 0xA6BE, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp index 5348785d10..e3137ad6eb 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_CNS_EUC_V_0[180 * 3] = { +const uint16_t g_FXCMAP_CNS_EUC_V_0[180 * 3] = { 0x0020, 0x007E, 0x3550, 0xA1A1, 0xA1AB, 0x0063, 0xA1AC, 0xA1AC, 0x354E, 0xA1AD, 0xA1BA, 0x006F, 0xA1BB, 0xA1BB, 0x007C, 0xA1BC, 0xA1BC, 0x007E, 0xA1BD, 0xA1BD, 0x007E, 0xA1BE, 0xA1BF, 0x0082, 0xA1C0, 0xA1C1, 0x0082, @@ -69,7 +69,7 @@ const FX_WORD g_FXCMAP_CNS_EUC_V_0[180 * 3] = { 0xFBA1, 0xFBFE, 0x1685, 0xFCA1, 0xFCFE, 0x16E3, 0xFDA1, 0xFDCB, 0x1741, }; -const FX_WORD g_FXCMAP_CNS_EUC_V_0_DWord[261 * 4] = { +const uint16_t g_FXCMAP_CNS_EUC_V_0_DWord[261 * 4] = { 0x8EA1, 0xA1A1, 0xA1AB, 0x0063, 0x8EA1, 0xA1AC, 0xA1AC, 0x354E, 0x8EA1, 0xA1AD, 0xA1BA, 0x006F, 0x8EA1, 0xA1BB, 0xA1BB, 0x007C, 0x8EA1, 0xA1BC, 0xA1BC, 0x007E, 0x8EA1, 0xA1BD, 0xA1BD, 0x007E, 0x8EA1, 0xA1BE, 0xA1BF, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp index 5f7ccd42ab..291ab2627c 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_ETen_B5_H_0[254 * 3] = { +const uint16_t g_FXCMAP_ETen_B5_H_0[254 * 3] = { 0x0020, 0x007E, 0x3550, 0xA140, 0xA158, 0x0063, 0xA159, 0xA15C, 0x35AF, 0xA15D, 0xA17E, 0x0080, 0xA1A1, 0xA1F5, 0x00A2, 0xA1F6, 0xA1F6, 0x00F8, 0xA1F7, 0xA1F7, 0x00F7, 0xA1F8, 0xA1FE, 0x00F9, 0xA240, 0xA27E, 0x0100, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp index 3de105a413..dfbc1e35ba 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_ETen_B5_V_0[13 * 3] = { +const uint16_t g_FXCMAP_ETen_B5_V_0[13 * 3] = { 0xA14B, 0xA14B, 0x354E, 0xA15A, 0xA15A, 0x35AF, 0xA15C, 0xA15C, 0x35B1, 0xA15D, 0xA15E, 0x0082, 0xA161, 0xA162, 0x0086, 0xA165, 0xA166, 0x008A, 0xA169, 0xA16A, 0x008E, 0xA16D, 0xA16E, 0x0092, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp index 267fee6af8..40fae5086a 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp @@ -6,6 +6,6 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_ETenms_B5_H_0[1 * 3] = { +const uint16_t g_FXCMAP_ETenms_B5_H_0[1 * 3] = { 0x0020, 0x007E, 0x0001, }; diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp index 4f555fadba..b7f79e44bb 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_ETenms_B5_V_0[18 * 3] = { +const uint16_t g_FXCMAP_ETenms_B5_V_0[18 * 3] = { 0xA14B, 0xA14B, 0x354E, 0xA14C, 0xA14C, 0x006D, 0xA156, 0xA156, 0x0138, 0xA158, 0xA158, 0x007A, 0xA15A, 0xA15A, 0x35AF, 0xA15C, 0xA15C, 0x35B1, 0xA15D, 0xA15E, 0x0082, 0xA161, 0xA162, 0x0086, 0xA165, 0xA166, 0x008A, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp index 67459a505f..170c33052b 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_HKscs_B5_H_5[1210 * 3] = { +const uint16_t g_FXCMAP_HKscs_B5_H_5[1210 * 3] = { 0x0020, 0x007E, 0x0001, 0x8740, 0x8765, 0x4A15, 0x8767, 0x8779, 0x4A3B, 0x8840, 0x8855, 0x44C9, 0x8856, 0x887E, 0x4961, 0x88A1, 0x88A8, 0x498A, 0x88A9, 0x88AA, 0x499C, 0x8940, 0x8941, 0x4534, 0x8943, 0x8943, 0x4536, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp index d9cbab8826..cfb1817c0d 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_HKscs_B5_V_5[13 * 3] = { +const uint16_t g_FXCMAP_HKscs_B5_V_5[13 * 3] = { 0xA14B, 0xA14B, 0x354E, 0xA15A, 0xA15A, 0x35AF, 0xA15C, 0xA15C, 0x35B1, 0xA15D, 0xA15E, 0x0082, 0xA161, 0xA162, 0x0086, 0xA165, 0xA166, 0x008A, 0xA169, 0xA16A, 0x008E, 0xA16D, 0xA16E, 0x0092, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp index f02c9dc655..64e52de650 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_UniCNS_UCS2_H_3[16418 * 3] = { +const uint16_t g_FXCMAP_UniCNS_UCS2_H_3[16418 * 3] = { 0x0020, 0x007E, 0x0001, 0x00A2, 0x00A3, 0x0106, 0x00A5, 0x00A5, 0x0104, 0x00A7, 0x00A7, 0x00B2, 0x00A8, 0x00A8, 0x35B3, 0x00AC, 0x00AC, 0x36E1, 0x00B0, 0x00B0, 0x0118, 0x00B1, 0x00B1, 0x00D4, 0x00B7, 0x00B7, 0x0073, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp index b77835c3f3..e1bb27c2f5 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_UniCNS_UCS2_V_3[13 * 3] = { +const uint16_t g_FXCMAP_UniCNS_UCS2_V_3[13 * 3] = { 0x2013, 0x2013, 0x0078, 0x2014, 0x2014, 0x007A, 0x2025, 0x2025, 0x006D, 0x3008, 0x3009, 0x0096, 0x300A, 0x300B, 0x0092, 0x300C, 0x300D, 0x009A, 0x300E, 0x300F, 0x009E, 0x3010, 0x3011, 0x008E, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp index c30dc46568..5cee7b2f8c 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h" -const FX_WORD g_FXCMAP_UniCNS_UTF16_H_0[14557 * 2] = { +const uint16_t g_FXCMAP_UniCNS_UTF16_H_0[14557 * 2] = { 0x0020, 0x0001, 0x0021, 0x0002, 0x0022, 0x0003, 0x0023, 0x0004, 0x0024, 0x0005, 0x0025, 0x0006, 0x0026, 0x0007, 0x0027, 0x0008, 0x0028, 0x0009, 0x0029, 0x000A, 0x002A, 0x000B, 0x002B, 0x000C, 0x002C, 0x000D, 0x002D, diff --git a/core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h b/core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h index 249d529b91..bef9f6c04d 100644 --- a/core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h +++ b/core/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.h @@ -7,23 +7,23 @@ #ifndef CORE_FPDFAPI_FPDF_CMAPS_CNS1_CMAPS_CNS1_H_ #define CORE_FPDFAPI_FPDF_CMAPS_CNS1_CMAPS_CNS1_H_ -#include "core/include/fxcrt/fx_system.h" // For FX_WORD. +#include <stdint.h> -extern const FX_WORD g_FXCMAP_B5pc_H_0[]; -extern const FX_WORD g_FXCMAP_B5pc_V_0[]; -extern const FX_WORD g_FXCMAP_HKscs_B5_H_5[]; -extern const FX_WORD g_FXCMAP_HKscs_B5_V_5[]; -extern const FX_WORD g_FXCMAP_ETen_B5_H_0[]; -extern const FX_WORD g_FXCMAP_ETen_B5_V_0[]; -extern const FX_WORD g_FXCMAP_ETenms_B5_H_0[]; -extern const FX_WORD g_FXCMAP_ETenms_B5_V_0[]; -extern const FX_WORD g_FXCMAP_CNS_EUC_H_0[]; -extern const FX_WORD g_FXCMAP_CNS_EUC_H_0_DWord[]; -extern const FX_WORD g_FXCMAP_CNS_EUC_V_0[]; -extern const FX_WORD g_FXCMAP_CNS_EUC_V_0_DWord[]; -extern const FX_WORD g_FXCMAP_UniCNS_UCS2_H_3[]; -extern const FX_WORD g_FXCMAP_UniCNS_UCS2_V_3[]; -extern const FX_WORD g_FXCMAP_UniCNS_UTF16_H_0[]; -extern const FX_WORD g_FXCMAP_CNS1CID2Unicode_5[]; +extern const uint16_t g_FXCMAP_B5pc_H_0[]; +extern const uint16_t g_FXCMAP_B5pc_V_0[]; +extern const uint16_t g_FXCMAP_HKscs_B5_H_5[]; +extern const uint16_t g_FXCMAP_HKscs_B5_V_5[]; +extern const uint16_t g_FXCMAP_ETen_B5_H_0[]; +extern const uint16_t g_FXCMAP_ETen_B5_V_0[]; +extern const uint16_t g_FXCMAP_ETenms_B5_H_0[]; +extern const uint16_t g_FXCMAP_ETenms_B5_V_0[]; +extern const uint16_t g_FXCMAP_CNS_EUC_H_0[]; +extern const uint16_t g_FXCMAP_CNS_EUC_H_0_DWord[]; +extern const uint16_t g_FXCMAP_CNS_EUC_V_0[]; +extern const uint16_t g_FXCMAP_CNS_EUC_V_0_DWord[]; +extern const uint16_t g_FXCMAP_UniCNS_UCS2_H_3[]; +extern const uint16_t g_FXCMAP_UniCNS_UCS2_V_3[]; +extern const uint16_t g_FXCMAP_UniCNS_UTF16_H_0[]; +extern const uint16_t g_FXCMAP_CNS1CID2Unicode_5[]; #endif // CORE_FPDFAPI_FPDF_CMAPS_CNS1_CMAPS_CNS1_H_ diff --git a/core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp b/core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp index c6e5752ede..a7468964f9 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GB1CID2Unicode_5[30284] = { +const uint16_t g_FXCMAP_GB1CID2Unicode_5[30284] = { 0xFFFD, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp index 0485aee635..bf4f12f04b 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GB_EUC_H_0[90 * 3] = { +const uint16_t g_FXCMAP_GB_EUC_H_0[90 * 3] = { 0x0020, 0x0020, 0x1E24, 0x0021, 0x007E, 0x032E, 0xA1A1, 0xA1FE, 0x0060, 0xA2B1, 0xA2E2, 0x00BE, 0xA2E5, 0xA2EE, 0x00F0, 0xA2F1, 0xA2FC, 0x00FA, 0xA3A1, 0xA3FE, 0x0106, 0xA4A1, 0xA4F3, 0x0164, 0xA5A1, 0xA5F6, 0x01B7, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp index 274d0d2fd2..dd4e0b8742 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GB_EUC_V_0[20 * 3] = { +const uint16_t g_FXCMAP_GB_EUC_V_0[20 * 3] = { 0xA1A2, 0xA1A2, 0x023F, 0xA1A3, 0xA1A3, 0x023E, 0xA1AA, 0xA1AA, 0x0256, 0xA1AB, 0xA1AC, 0x1E18, 0xA1AD, 0xA1AD, 0x0257, 0xA1B2, 0xA1BF, 0x0246, 0xA1FE, 0xA1FE, 0x1E1A, 0xA3A1, 0xA3A1, 0x0242, 0xA3A8, 0xA3A9, 0x0244, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp index 7f668947b5..ed68358705 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBK_EUC_H_2[4071 * 3] = { +const uint16_t g_FXCMAP_GBK_EUC_H_2[4071 * 3] = { 0x0020, 0x0020, 0x1E24, 0x0021, 0x007E, 0x032E, 0x8140, 0x8178, 0x2758, 0x8179, 0x8179, 0x2059, 0x817A, 0x817E, 0x2791, 0x8180, 0x8185, 0x2796, 0x8186, 0x8186, 0x21F1, 0x8187, 0x81EC, 0x279C, 0x81ED, 0x81ED, 0x1FF2, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp index ec35055da5..5c993f8b4d 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBK_EUC_V_2[20 * 3] = { +const uint16_t g_FXCMAP_GBK_EUC_V_2[20 * 3] = { 0xA1A2, 0xA1A2, 0x023F, 0xA1A3, 0xA1A3, 0x023E, 0xA1AA, 0xA1AA, 0x0256, 0xA1AB, 0xA1AC, 0x1E18, 0xA1AD, 0xA1AD, 0x0257, 0xA1B2, 0xA1BF, 0x0246, 0xA1FE, 0xA1FE, 0x1E1A, 0xA3A1, 0xA3A1, 0x0242, 0xA3A8, 0xA3A9, 0x0244, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp index bd0b1be516..7ad5864c9d 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBK2K_H_5[4071 * 3] = { +const uint16_t g_FXCMAP_GBK2K_H_5[4071 * 3] = { 0x0020, 0x007E, 0x0001, 0x8140, 0x8178, 0x2758, 0x8179, 0x8179, 0x2059, 0x817A, 0x817E, 0x2791, 0x8180, 0x8185, 0x2796, 0x8186, 0x8186, 0x21F1, 0x8187, 0x81EC, 0x279C, 0x81ED, 0x81ED, 0x1FF2, 0x81EE, 0x81F5, 0x2802, @@ -1366,7 +1366,7 @@ const FX_WORD g_FXCMAP_GBK2K_H_5[4071 * 3] = { 0xFE40, 0xFE40, 0x1259, 0xFE41, 0xFE7E, 0x5610, 0xFE80, 0xFEA0, 0x564E, }; -const FX_WORD g_FXCMAP_GBK2K_H_5_DWord[1017 * 4] = { +const uint16_t g_FXCMAP_GBK2K_H_5_DWord[1017 * 4] = { 0x8130, 0x8436, 0x8436, 0x5752, 0x8138, 0xFD38, 0xFD39, 0x579C, 0x8138, 0xFE30, 0xFE39, 0x579E, 0x8139, 0x8130, 0x8137, 0x57A8, 0x8139, 0x8139, 0x8139, 0x57B0, 0x8139, 0x8230, 0x8239, 0x57B1, 0x8139, 0x8330, 0x8339, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp index 5e66e43b7e..0445263e02 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBK2K_V_5[41 * 3] = { +const uint16_t g_FXCMAP_GBK2K_V_5[41 * 3] = { 0xA1A2, 0xA1A2, 0x023F, 0xA1A3, 0xA1A3, 0x023E, 0xA1AA, 0xA1AA, 0x0256, 0xA1AB, 0xA1AC, 0x1E18, 0xA1AD, 0xA1AD, 0x0257, 0xA1B2, 0xA1BF, 0x0246, 0xA1FE, 0xA1FE, 0x1E1A, 0xA3A1, 0xA3A1, 0x0242, 0xA3A8, 0xA3A9, 0x0244, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp index 540e7b6c2a..44a5b7f8a1 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBKp_EUC_H_2[4070 * 3] = { +const uint16_t g_FXCMAP_GBKp_EUC_H_2[4070 * 3] = { 0x0020, 0x007E, 0x0001, 0x8140, 0x8178, 0x2758, 0x8179, 0x8179, 0x2059, 0x817A, 0x817E, 0x2791, 0x8180, 0x8185, 0x2796, 0x8186, 0x8186, 0x21F1, 0x8187, 0x81EC, 0x279C, 0x81ED, 0x81ED, 0x1FF2, 0x81EE, 0x81F5, 0x2802, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp index 8c8b3d5c92..c9aac3d3ff 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBKp_EUC_V_2[20 * 3] = { +const uint16_t g_FXCMAP_GBKp_EUC_V_2[20 * 3] = { 0xA1A2, 0xA1A2, 0x023F, 0xA1A3, 0xA1A3, 0x023E, 0xA1AA, 0xA1AA, 0x0256, 0xA1AB, 0xA1AC, 0x1E18, 0xA1AD, 0xA1AD, 0x0257, 0xA1B2, 0xA1BF, 0x0246, 0xA1FE, 0xA1FE, 0x1E1A, 0xA3A1, 0xA3A1, 0x0242, 0xA3A8, 0xA3A9, 0x0244, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp index 0fab35577c..4553f7ca1e 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBpc_EUC_H_0[91 * 3] = { +const uint16_t g_FXCMAP_GBpc_EUC_H_0[91 * 3] = { 0x0020, 0x007E, 0x0001, 0x0080, 0x0080, 0x1E20, 0x00FD, 0x00FF, 0x1E21, 0xA1A1, 0xA1FE, 0x0060, 0xA2B1, 0xA2E2, 0x00BE, 0xA2E5, 0xA2EE, 0x00F0, 0xA2F1, 0xA2FC, 0x00FA, 0xA3A1, 0xA3FE, 0x0106, 0xA4A1, 0xA4F3, 0x0164, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp b/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp index c07c8a18c0..70cacb5546 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_GBpc_EUC_V_0[20 * 3] = { +const uint16_t g_FXCMAP_GBpc_EUC_V_0[20 * 3] = { 0xA1A2, 0xA1A2, 0x023F, 0xA1A3, 0xA1A3, 0x023E, 0xA1AA, 0xA1AA, 0x0256, 0xA1AB, 0xA1AC, 0x1E18, 0xA1AD, 0xA1AD, 0x0257, 0xA1B2, 0xA1BF, 0x0246, 0xA1FE, 0xA1FE, 0x1E1A, 0xA3A1, 0xA3A1, 0x0242, 0xA3A8, 0xA3A9, 0x0244, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp b/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp index 60e109f864..e01692f36a 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_UniGB_UCS2_H_4[13825 * 3] = { +const uint16_t g_FXCMAP_UniGB_UCS2_H_4[13825 * 3] = { 0x0020, 0x007E, 0x0001, 0x00A4, 0x00A4, 0x00A7, 0x00A5, 0x00A5, 0x5752, 0x00A7, 0x00A7, 0x00AB, 0x00A8, 0x00A8, 0x0066, 0x00B0, 0x00B0, 0x00A2, 0x00B1, 0x00B1, 0x007F, 0x00D7, 0x00D7, 0x0080, 0x00E0, 0x00E0, 0x029F, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp b/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp index 5d53067e26..1889171420 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h" -const FX_WORD g_FXCMAP_UniGB_UCS2_V_4[24 * 3] = { +const uint16_t g_FXCMAP_UniGB_UCS2_V_4[24 * 3] = { 0x2014, 0x2014, 0x0256, 0x2026, 0x2026, 0x0257, 0x2225, 0x2225, 0x1E1C, 0x3001, 0x3001, 0x023F, 0x3002, 0x3002, 0x023E, 0x3008, 0x300F, 0x0248, 0x3010, 0x3011, 0x0252, 0x3013, 0x3013, 0x1E1A, 0x3014, 0x3015, 0x0246, diff --git a/core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h b/core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h index 348783de9d..e80809897d 100644 --- a/core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h +++ b/core/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.h @@ -7,21 +7,21 @@ #ifndef CORE_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ #define CORE_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ -#include "core/include/fxcrt/fx_system.h" // For FX_WORD. +#include <stdint.h> -extern const FX_WORD g_FXCMAP_GB_EUC_H_0[]; -extern const FX_WORD g_FXCMAP_GB_EUC_V_0[]; -extern const FX_WORD g_FXCMAP_GBpc_EUC_H_0[]; -extern const FX_WORD g_FXCMAP_GBpc_EUC_V_0[]; -extern const FX_WORD g_FXCMAP_GBK_EUC_H_2[]; -extern const FX_WORD g_FXCMAP_GBK_EUC_V_2[]; -extern const FX_WORD g_FXCMAP_GBKp_EUC_H_2[]; -extern const FX_WORD g_FXCMAP_GBKp_EUC_V_2[]; -extern const FX_WORD g_FXCMAP_GBK2K_H_5[]; -extern const FX_WORD g_FXCMAP_GBK2K_H_5_DWord[]; -extern const FX_WORD g_FXCMAP_GBK2K_V_5[]; -extern const FX_WORD g_FXCMAP_UniGB_UCS2_H_4[]; -extern const FX_WORD g_FXCMAP_UniGB_UCS2_V_4[]; -extern const FX_WORD g_FXCMAP_GB1CID2Unicode_5[]; +extern const uint16_t g_FXCMAP_GB_EUC_H_0[]; +extern const uint16_t g_FXCMAP_GB_EUC_V_0[]; +extern const uint16_t g_FXCMAP_GBpc_EUC_H_0[]; +extern const uint16_t g_FXCMAP_GBpc_EUC_V_0[]; +extern const uint16_t g_FXCMAP_GBK_EUC_H_2[]; +extern const uint16_t g_FXCMAP_GBK_EUC_V_2[]; +extern const uint16_t g_FXCMAP_GBKp_EUC_H_2[]; +extern const uint16_t g_FXCMAP_GBKp_EUC_V_2[]; +extern const uint16_t g_FXCMAP_GBK2K_H_5[]; +extern const uint16_t g_FXCMAP_GBK2K_H_5_DWord[]; +extern const uint16_t g_FXCMAP_GBK2K_V_5[]; +extern const uint16_t g_FXCMAP_UniGB_UCS2_H_4[]; +extern const uint16_t g_FXCMAP_UniGB_UCS2_V_4[]; +extern const uint16_t g_FXCMAP_GB1CID2Unicode_5[]; #endif // CORE_FPDFAPI_FPDF_CMAPS_GB1_CMAPS_GB1_H_ diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp index 19b3976a07..e3ac795e98 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_83pv_RKSJ_H_1[222 * 3] = { +const uint16_t g_FXCMAP_83pv_RKSJ_H_1[222 * 3] = { 0x0020, 0x007E, 0x0001, 0x0080, 0x0080, 0x0061, 0x00A0, 0x00DF, 0x0146, 0x00FD, 0x00FD, 0x0098, 0x00FE, 0x00FE, 0x00E4, 0x00FF, 0x00FF, 0x007C, 0x8140, 0x817E, 0x0279, 0x8180, 0x81AC, 0x02B8, 0x81B8, 0x81BF, 0x02E5, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp index d38111784e..485b6a8500 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_90ms_RKSJ_H_2[171 * 3] = { +const uint16_t g_FXCMAP_90ms_RKSJ_H_2[171 * 3] = { 0x0020, 0x007D, 0x00E7, 0x007E, 0x007E, 0x0277, 0x00A0, 0x00DF, 0x0146, 0x8140, 0x817E, 0x0279, 0x8180, 0x81AC, 0x02B8, 0x81B8, 0x81BF, 0x02E5, 0x81C8, 0x81CE, 0x02ED, 0x81DA, 0x81E8, 0x02F4, 0x81F0, 0x81F7, 0x0303, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp index 31a9ae55e2..19716da07d 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_90ms_RKSJ_V_2[78 * 3] = { +const uint16_t g_FXCMAP_90ms_RKSJ_V_2[78 * 3] = { 0x8141, 0x8142, 0x1ECF, 0x8143, 0x8143, 0x204C, 0x8144, 0x8144, 0x2052, 0x8150, 0x8151, 0x1ED1, 0x815B, 0x815D, 0x1ED3, 0x8160, 0x8164, 0x1ED6, 0x8169, 0x817A, 0x1EDB, 0x8181, 0x8181, 0x1EED, 0x81A8, 0x81A8, 0x02E3, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp index dd930ea66d..471a0ef776 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_90msp_RKSJ_H_2[170 * 3] = { +const uint16_t g_FXCMAP_90msp_RKSJ_H_2[170 * 3] = { 0x0020, 0x007E, 0x0001, 0x00A0, 0x00DF, 0x0146, 0x8140, 0x817E, 0x0279, 0x8180, 0x81AC, 0x02B8, 0x81B8, 0x81BF, 0x02E5, 0x81C8, 0x81CE, 0x02ED, 0x81DA, 0x81E8, 0x02F4, 0x81F0, 0x81F7, 0x0303, 0x81FC, 0x81FC, 0x030B, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp index a9731c4f8a..4aff86612c 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_90msp_RKSJ_V_2[78 * 3] = { +const uint16_t g_FXCMAP_90msp_RKSJ_V_2[78 * 3] = { 0x8141, 0x8142, 0x1ECF, 0x8143, 0x8143, 0x204C, 0x8144, 0x8144, 0x2052, 0x8150, 0x8151, 0x1ED1, 0x815B, 0x815D, 0x1ED3, 0x8160, 0x8164, 0x1ED6, 0x8169, 0x817A, 0x1EDB, 0x8181, 0x8181, 0x1EED, 0x81A8, 0x81A8, 0x02E3, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp index 331e75614c..61890ad2d7 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_90pv_RKSJ_H_1[263 * 3] = { +const uint16_t g_FXCMAP_90pv_RKSJ_H_1[263 * 3] = { 0x0020, 0x007E, 0x0001, 0x0080, 0x0080, 0x0061, 0x00A0, 0x00DF, 0x0146, 0x00FD, 0x00FD, 0x0098, 0x00FE, 0x00FE, 0x00E4, 0x00FF, 0x00FF, 0x007C, 0x8140, 0x817E, 0x0279, 0x8180, 0x81AC, 0x02B8, 0x81B8, 0x81BF, 0x02E5, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp index ee3027a526..1034dd9713 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_Add_RKSJ_H_1[635 * 3] = { +const uint16_t g_FXCMAP_Add_RKSJ_H_1[635 * 3] = { 0x0020, 0x007E, 0x00E7, 0x00A0, 0x00DF, 0x0146, 0x8140, 0x817E, 0x0279, 0x8180, 0x81AC, 0x02B8, 0x81B8, 0x81BF, 0x02E5, 0x81C8, 0x81CE, 0x02ED, 0x81DA, 0x81E8, 0x02F4, 0x81F0, 0x81F7, 0x0303, 0x81FC, 0x81FC, 0x030B, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp index b23057f738..8c3eee5843 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_Add_RKSJ_V_1[57 * 3] = { +const uint16_t g_FXCMAP_Add_RKSJ_V_1[57 * 3] = { 0x8141, 0x8142, 0x1ECF, 0x8143, 0x8143, 0x204C, 0x8144, 0x8144, 0x2052, 0x8150, 0x8151, 0x1ED1, 0x815B, 0x815D, 0x1ED3, 0x8160, 0x8164, 0x1ED6, 0x8165, 0x8165, 0x205A, 0x8166, 0x8166, 0x2053, 0x8167, 0x8167, 0x2058, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp index 6be7bbfe5c..2f127aa9f1 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_Japan1CID2Unicode_4[15444] = { +const uint16_t g_FXCMAP_Japan1CID2Unicode_4[15444] = { 0xFFFD, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp index e729ebf90c..fc8c7913d8 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_EUC_H_1[120 * 3] = { +const uint16_t g_FXCMAP_EUC_H_1[120 * 3] = { 0x0020, 0x007E, 0x00E7, 0x8EA0, 0x8EDF, 0x0146, 0xA1A1, 0xA1FE, 0x0279, 0xA2A1, 0xA2AE, 0x02D7, 0xA2BA, 0xA2C1, 0x02E5, 0xA2CA, 0xA2D0, 0x02ED, 0xA2DC, 0xA2EA, 0x02F4, 0xA2F2, 0xA2F9, 0x0303, 0xA2FE, 0xA2FE, 0x030B, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp index af095bc570..b5b72fedde 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_EUC_V_1[27 * 3] = { +const uint16_t g_FXCMAP_EUC_V_1[27 * 3] = { 0xA1A2, 0xA1A3, 0x1ECF, 0xA1B1, 0xA1B2, 0x1ED1, 0xA1BC, 0xA1BE, 0x1ED3, 0xA1C1, 0xA1C5, 0x1ED6, 0xA1CA, 0xA1DB, 0x1EDB, 0xA1E1, 0xA1E1, 0x1EED, 0xA4A1, 0xA4A1, 0x1EEE, 0xA4A3, 0xA4A3, 0x1EEF, 0xA4A5, 0xA4A5, 0x1EF0, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp index f4399cbdea..aed4cd992b 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_Ext_RKSJ_H_2[665 * 3] = { +const uint16_t g_FXCMAP_Ext_RKSJ_H_2[665 * 3] = { 0x0020, 0x007E, 0x00E7, 0x00A0, 0x00DF, 0x0146, 0x8140, 0x817E, 0x0279, 0x8180, 0x8188, 0x02B8, 0x8189, 0x8189, 0x1D36, 0x818A, 0x81AC, 0x02C2, 0x824F, 0x8258, 0x030C, 0x8260, 0x8279, 0x0316, 0x8281, 0x829A, 0x0330, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp index f3dbea981c..06cc2fecc1 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_Ext_RKSJ_V_2[39 * 3] = { +const uint16_t g_FXCMAP_Ext_RKSJ_V_2[39 * 3] = { 0x8141, 0x8142, 0x1ECF, 0x8143, 0x8143, 0x204C, 0x8144, 0x8144, 0x2052, 0x814A, 0x814A, 0x2050, 0x814B, 0x814B, 0x204F, 0x815B, 0x815D, 0x1ED3, 0x8160, 0x8164, 0x1ED6, 0x8165, 0x8165, 0x2059, 0x8166, 0x8166, 0x2054, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp index 2905a5896b..082c1fadf1 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_H_1[118 * 3] = { +const uint16_t g_FXCMAP_H_1[118 * 3] = { 0x2121, 0x217E, 0x0279, 0x2221, 0x222E, 0x02D7, 0x223A, 0x2241, 0x02E5, 0x224A, 0x2250, 0x02ED, 0x225C, 0x226A, 0x02F4, 0x2272, 0x2279, 0x0303, 0x227E, 0x227E, 0x030B, 0x2330, 0x2339, 0x030C, 0x2341, 0x235A, 0x0316, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp index ac3ae2f82c..9137660760 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_UniJIS_UCS2_HW_H_4[4 * 3] = { +const uint16_t g_FXCMAP_UniJIS_UCS2_HW_H_4[4 * 3] = { 0x0020, 0x005B, 0x00E7, 0x005C, 0x005C, 0x220F, 0x005D, 0x007E, 0x0124, 0x00A5, 0x00A5, 0x0123, }; diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp index 2753934fc2..0df6fb3019 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_UniJIS_UCS2_HW_V_4[199 * 3] = { +const uint16_t g_FXCMAP_UniJIS_UCS2_HW_V_4[199 * 3] = { 0x0020, 0x005B, 0x00E7, 0x005C, 0x005C, 0x220F, 0x005D, 0x007E, 0x0124, 0x00A5, 0x00A5, 0x0123, 0x00B0, 0x00B0, 0x204D, 0x2010, 0x2010, 0x1ED5, 0x2015, 0x2015, 0x1ED4, 0x2016, 0x2016, 0x1ED7, 0x2018, 0x2019, 0x2059, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp index 9c1387a185..03af2e8aee 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_UniJIS_UCS2_H_4[9772 * 2] = { +const uint16_t g_FXCMAP_UniJIS_UCS2_H_4[9772 * 2] = { 0x0020, 0x0001, 0x0021, 0x0002, 0x0022, 0x0003, 0x0023, 0x0004, 0x0024, 0x0005, 0x0025, 0x0006, 0x0026, 0x0007, 0x0027, 0x0008, 0x0028, 0x0009, 0x0029, 0x000A, 0x002A, 0x000B, 0x002B, 0x000C, 0x002C, 0x000D, 0x002D, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp index fc0375cb20..715ceb09c0 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_UniJIS_UCS2_V_4[251 * 2] = { +const uint16_t g_FXCMAP_UniJIS_UCS2_V_4[251 * 2] = { 0x00B0, 0x204D, 0x2010, 0x1ED5, 0x2015, 0x1ED4, 0x2016, 0x1ED7, 0x2018, 0x2059, 0x2019, 0x205A, 0x201C, 0x2057, 0x201D, 0x2058, 0x2025, 0x1EDA, 0x2026, 0x1ED9, 0x2032, 0x2051, 0x2033, 0x205B, 0x2190, 0x02E2, 0x2191, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp b/core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp index 1c5663e3d9..85adc38cbb 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h" -const FX_WORD g_FXCMAP_V_1[27 * 3] = { +const uint16_t g_FXCMAP_V_1[27 * 3] = { 0x2122, 0x2123, 0x1ECF, 0x2131, 0x2132, 0x1ED1, 0x213C, 0x213E, 0x1ED3, 0x2141, 0x2145, 0x1ED6, 0x214A, 0x215B, 0x1EDB, 0x2161, 0x2161, 0x1EED, 0x2421, 0x2421, 0x1EEE, 0x2423, 0x2423, 0x1EEF, 0x2425, 0x2425, 0x1EF0, diff --git a/core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h b/core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h index 851dbde44e..d871735942 100644 --- a/core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h +++ b/core/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.h @@ -7,29 +7,29 @@ #ifndef CORE_FPDFAPI_FPDF_CMAPS_JAPAN1_CMAPS_JAPAN1_H_ #define CORE_FPDFAPI_FPDF_CMAPS_JAPAN1_CMAPS_JAPAN1_H_ -#include "core/include/fxcrt/fx_system.h" // For FX_WORD. +#include <stdint.h> -extern const FX_WORD g_FXCMAP_83pv_RKSJ_H_1[]; -extern const FX_WORD g_FXCMAP_90ms_RKSJ_H_2[]; -extern const FX_WORD g_FXCMAP_90ms_RKSJ_V_2[]; -extern const FX_WORD g_FXCMAP_90msp_RKSJ_H_2[]; -extern const FX_WORD g_FXCMAP_90msp_RKSJ_V_2[]; -extern const FX_WORD g_FXCMAP_90pv_RKSJ_H_1[]; -extern const FX_WORD g_FXCMAP_Add_RKSJ_H_1[]; -extern const FX_WORD g_FXCMAP_Add_RKSJ_V_1[]; -extern const FX_WORD g_FXCMAP_EUC_H_1[]; -extern const FX_WORD g_FXCMAP_EUC_V_1[]; -extern const FX_WORD g_FXCMAP_Ext_RKSJ_H_2[]; -extern const FX_WORD g_FXCMAP_Ext_RKSJ_V_2[]; -extern const FX_WORD g_FXCMAP_H_1[]; -extern const FX_WORD g_FXCMAP_V_1[]; -extern const FX_WORD g_FXCMAP_UniJIS_UCS2_H_4[]; -extern const FX_WORD g_FXCMAP_UniJIS_UCS2_V_4[]; -extern const FX_WORD g_FXCMAP_UniJIS_UCS2_HW_H_4[]; -extern const FX_WORD g_FXCMAP_UniJIS_UCS2_HW_V_4[]; -extern const FX_WORD g_FXCMAP_UniJIS_UTF16_H_0[]; -extern const FX_WORD g_FXCMAP_UniJIS_UTF16_H_0_DWord[]; -extern const FX_WORD g_FXCMAP_UniJIS_UTF16_V_0[]; -extern const FX_WORD g_FXCMAP_Japan1CID2Unicode_4[]; +extern const uint16_t g_FXCMAP_83pv_RKSJ_H_1[]; +extern const uint16_t g_FXCMAP_90ms_RKSJ_H_2[]; +extern const uint16_t g_FXCMAP_90ms_RKSJ_V_2[]; +extern const uint16_t g_FXCMAP_90msp_RKSJ_H_2[]; +extern const uint16_t g_FXCMAP_90msp_RKSJ_V_2[]; +extern const uint16_t g_FXCMAP_90pv_RKSJ_H_1[]; +extern const uint16_t g_FXCMAP_Add_RKSJ_H_1[]; +extern const uint16_t g_FXCMAP_Add_RKSJ_V_1[]; +extern const uint16_t g_FXCMAP_EUC_H_1[]; +extern const uint16_t g_FXCMAP_EUC_V_1[]; +extern const uint16_t g_FXCMAP_Ext_RKSJ_H_2[]; +extern const uint16_t g_FXCMAP_Ext_RKSJ_V_2[]; +extern const uint16_t g_FXCMAP_H_1[]; +extern const uint16_t g_FXCMAP_V_1[]; +extern const uint16_t g_FXCMAP_UniJIS_UCS2_H_4[]; +extern const uint16_t g_FXCMAP_UniJIS_UCS2_V_4[]; +extern const uint16_t g_FXCMAP_UniJIS_UCS2_HW_H_4[]; +extern const uint16_t g_FXCMAP_UniJIS_UCS2_HW_V_4[]; +extern const uint16_t g_FXCMAP_UniJIS_UTF16_H_0[]; +extern const uint16_t g_FXCMAP_UniJIS_UTF16_H_0_DWord[]; +extern const uint16_t g_FXCMAP_UniJIS_UTF16_V_0[]; +extern const uint16_t g_FXCMAP_Japan1CID2Unicode_4[]; #endif // CORE_FPDFAPI_FPDF_CMAPS_JAPAN1_CMAPS_JAPAN1_H_ diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp index 71c065375e..80c6caacc4 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_Korea1CID2Unicode_2[18352] = { +const uint16_t g_FXCMAP_Korea1CID2Unicode_2[18352] = { 0xFFFD, 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp index 93349291d7..6c63a89263 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSC_EUC_H_0[467 * 3] = { +const uint16_t g_FXCMAP_KSC_EUC_H_0[467 * 3] = { 0x0020, 0x007E, 0x1F9E, 0xA1A1, 0xA1FE, 0x0065, 0xA2A1, 0xA2E5, 0x00C3, 0xA3A1, 0xA3FE, 0x0108, 0xA4A1, 0xA4D3, 0x0166, 0xA4D5, 0xA4FE, 0x0199, 0xA5A1, 0xA5AA, 0x01C3, 0xA5B0, 0xA5B9, 0x01CD, 0xA5C1, 0xA5D8, 0x01D7, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp index 843ab7c0d1..64d8bb2649 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSC_EUC_V_0[16 * 3] = { +const uint16_t g_FXCMAP_KSC_EUC_V_0[16 * 3] = { 0xA1A2, 0xA1A3, 0x1F78, 0xA1A5, 0xA1A5, 0x1F7A, 0xA1A6, 0xA1A6, 0x2080, 0xA1A9, 0xA1AB, 0x1F7B, 0xA1AD, 0xA1AD, 0x1F7E, 0xA1B2, 0xA1BD, 0x1F7F, 0xA1EB, 0xA1EB, 0x1F8B, 0xA3A1, 0xA3A1, 0x1F8C, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp index 4476c3c169..f4c0d0a1a2 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSCms_UHC_HW_H_1[675 * 3] = { +const uint16_t g_FXCMAP_KSCms_UHC_HW_H_1[675 * 3] = { 0x0020, 0x007E, 0x1F9E, 0x8141, 0x815A, 0x2475, 0x8161, 0x817A, 0x248F, 0x8181, 0x81FE, 0x24A9, 0x8241, 0x825A, 0x2527, 0x8261, 0x827A, 0x2541, 0x8281, 0x82FE, 0x255B, 0x8341, 0x835A, 0x25D9, 0x8361, 0x837A, 0x25F3, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp index 1ebcdd34be..a6e284125c 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSCms_UHC_HW_V_1[16 * 3] = { +const uint16_t g_FXCMAP_KSCms_UHC_HW_V_1[16 * 3] = { 0xA1A2, 0xA1A3, 0x1F78, 0xA1A5, 0xA1A5, 0x1F7A, 0xA1A6, 0xA1A6, 0x2080, 0xA1A9, 0xA1AB, 0x1F7B, 0xA1AD, 0xA1AD, 0x1F7E, 0xA1B2, 0xA1BD, 0x1F7F, 0xA1EB, 0xA1EB, 0x1F8B, 0xA3A1, 0xA3A1, 0x1F8C, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp index 865b7c6c79..1bec769eeb 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSCms_UHC_H_1[675 * 3] = { +const uint16_t g_FXCMAP_KSCms_UHC_H_1[675 * 3] = { 0x0020, 0x007E, 0x0001, 0x8141, 0x815A, 0x2475, 0x8161, 0x817A, 0x248F, 0x8181, 0x81FE, 0x24A9, 0x8241, 0x825A, 0x2527, 0x8261, 0x827A, 0x2541, 0x8281, 0x82FE, 0x255B, 0x8341, 0x835A, 0x25D9, 0x8361, 0x837A, 0x25F3, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp index ed55f14c12..ce17fec819 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSCms_UHC_V_1[16 * 3] = { +const uint16_t g_FXCMAP_KSCms_UHC_V_1[16 * 3] = { 0xA1A2, 0xA1A3, 0x1F78, 0xA1A5, 0xA1A5, 0x1F7A, 0xA1A6, 0xA1A6, 0x2080, 0xA1A9, 0xA1AB, 0x1F7B, 0xA1AD, 0xA1AD, 0x1F7E, 0xA1B2, 0xA1BD, 0x1F7F, 0xA1EB, 0xA1EB, 0x1F8B, 0xA3A1, 0xA3A1, 0x1F8C, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp index 2fcebc1fb1..4639797059 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_KSCpc_EUC_H_0[509 * 3] = { +const uint16_t g_FXCMAP_KSCpc_EUC_H_0[509 * 3] = { 0x0020, 0x007E, 0x0001, 0x0081, 0x0083, 0x0060, 0x00FE, 0x00FF, 0x0063, 0xA141, 0xA17D, 0x1FFF, 0xA181, 0xA19A, 0x203C, 0xA19C, 0xA1A0, 0x2056, 0xA1A1, 0xA1A1, 0x0065, 0xA1A2, 0xA1A3, 0x205B, 0xA1A4, 0xA1FE, 0x0068, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp index 8bab432fcd..9080deacd1 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_UniKS_UCS2_H_1[8394 * 3] = { +const uint16_t g_FXCMAP_UniKS_UCS2_H_1[8394 * 3] = { 0x0020, 0x007E, 0x0001, 0x00A1, 0x00A1, 0x00D0, 0x00A4, 0x00A4, 0x00D6, 0x00A7, 0x00A7, 0x009B, 0x00A8, 0x00A8, 0x006B, 0x00AA, 0x00AA, 0x029C, 0x00AB, 0x00AB, 0x00B0, 0x00B0, 0x00B0, 0x008A, 0x00B1, 0x00B1, 0x0082, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp index 834594d007..3eefc131e0 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_UniKS_UCS2_V_1[18 * 3] = { +const uint16_t g_FXCMAP_UniKS_UCS2_V_1[18 * 3] = { 0x2013, 0x2014, 0x1F7B, 0x2016, 0x2016, 0x1F7D, 0x2025, 0x2025, 0x1F7A, 0x3001, 0x3002, 0x1F78, 0x3008, 0x3011, 0x1F81, 0x3013, 0x3013, 0x1F8B, 0x3014, 0x3015, 0x1F7F, 0xFF01, 0xFF01, 0x1F8C, 0xFF08, 0xFF09, 0x1F8D, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp index 81f0c6ea7e..537eab0a42 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp +++ b/core/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp @@ -6,7 +6,7 @@ #include "core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h" -const FX_WORD g_FXCMAP_UniKS_UTF16_H_0[158 * 2] = { +const uint16_t g_FXCMAP_UniKS_UTF16_H_0[158 * 2] = { 0x00A9, 0x0062, 0x2010, 0x0061, 0x20A9, 0x0060, 0x2F00, 0x193C, 0x2F04, 0x18EC, 0x2F06, 0x190D, 0x2F08, 0x192B, 0x2F0A, 0x194D, 0x2F0B, 0x1D4B, 0x2F11, 0x10AE, 0x2F12, 0x116A, 0x2F14, 0x143F, 0x2F17, 0x168C, 0x2F18, diff --git a/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h b/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h index 0180658422..cca9a59905 100644 --- a/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h +++ b/core/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.h @@ -7,18 +7,18 @@ #ifndef CORE_FPDFAPI_FPDF_CMAPS_KOREA1_CMAPS_KOREA1_H_ #define CORE_FPDFAPI_FPDF_CMAPS_KOREA1_CMAPS_KOREA1_H_ -#include "core/include/fxcrt/fx_system.h" // For FX_WORD. +#include <stdint.h> -extern const FX_WORD g_FXCMAP_KSC_EUC_H_0[]; -extern const FX_WORD g_FXCMAP_KSC_EUC_V_0[]; -extern const FX_WORD g_FXCMAP_KSCms_UHC_H_1[]; -extern const FX_WORD g_FXCMAP_KSCms_UHC_V_1[]; -extern const FX_WORD g_FXCMAP_KSCms_UHC_HW_H_1[]; -extern const FX_WORD g_FXCMAP_KSCms_UHC_HW_V_1[]; -extern const FX_WORD g_FXCMAP_KSCpc_EUC_H_0[]; -extern const FX_WORD g_FXCMAP_UniKS_UCS2_H_1[]; -extern const FX_WORD g_FXCMAP_UniKS_UCS2_V_1[]; -extern const FX_WORD g_FXCMAP_UniKS_UTF16_H_0[]; -extern const FX_WORD g_FXCMAP_Korea1CID2Unicode_2[]; +extern const uint16_t g_FXCMAP_KSC_EUC_H_0[]; +extern const uint16_t g_FXCMAP_KSC_EUC_V_0[]; +extern const uint16_t g_FXCMAP_KSCms_UHC_H_1[]; +extern const uint16_t g_FXCMAP_KSCms_UHC_V_1[]; +extern const uint16_t g_FXCMAP_KSCms_UHC_HW_H_1[]; +extern const uint16_t g_FXCMAP_KSCms_UHC_HW_V_1[]; +extern const uint16_t g_FXCMAP_KSCpc_EUC_H_0[]; +extern const uint16_t g_FXCMAP_UniKS_UCS2_H_1[]; +extern const uint16_t g_FXCMAP_UniKS_UCS2_V_1[]; +extern const uint16_t g_FXCMAP_UniKS_UTF16_H_0[]; +extern const uint16_t g_FXCMAP_Korea1CID2Unicode_2[]; #endif // CORE_FPDFAPI_FPDF_CMAPS_KOREA1_CMAPS_KOREA1_H_ diff --git a/core/fpdfapi/fpdf_cmaps/cmap_int.h b/core/fpdfapi/fpdf_cmaps/cmap_int.h index a812d84f33..8dea4b4759 100644 --- a/core/fpdfapi/fpdf_cmaps/cmap_int.h +++ b/core/fpdfapi/fpdf_cmaps/cmap_int.h @@ -7,17 +7,17 @@ #ifndef CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ #define CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ -#include "core/include/fxcrt/fx_system.h" // For FX_WORD. +#include "core/include/fxcrt/fx_system.h" struct FXCMAP_CMap { enum MapType { None, Single, Range, Reverse }; const char* m_Name; MapType m_WordMapType; - const FX_WORD* m_pWordMap; + const uint16_t* m_pWordMap; int m_WordCount; MapType m_DWordMapType; - const FX_WORD* m_pDWordMap; + const uint16_t* m_pDWordMap; int m_DWordCount; int m_UseOffset; }; @@ -26,7 +26,7 @@ void FPDFAPI_FindEmbeddedCMap(const char* name, int charset, int coding, const FXCMAP_CMap*& pMap); -FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode); -FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid); +uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode); +FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, uint16_t cid); #endif // CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ diff --git a/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp b/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp index d54620d701..73ac8e1f6a 100644 --- a/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp +++ b/core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp @@ -30,15 +30,15 @@ void FPDFAPI_FindEmbeddedCMap(const char* name, } extern "C" { static int compareWord(const void* p1, const void* p2) { - return (*(FX_WORD*)p1) - (*(FX_WORD*)p2); + return (*(uint16_t*)p1) - (*(uint16_t*)p2); } }; extern "C" { static int compareWordRange(const void* key, const void* element) { - if (*(FX_WORD*)key < *(FX_WORD*)element) { + if (*(uint16_t*)key < *(uint16_t*)element) { return -1; } - if (*(FX_WORD*)key > ((FX_WORD*)element)[1]) { + if (*(uint16_t*)key > ((uint16_t*)element)[1]) { return 1; } return 0; @@ -47,15 +47,15 @@ static int compareWordRange(const void* key, const void* element) { extern "C" { static int compareDWordRange(const void* p1, const void* p2) { FX_DWORD key = *(FX_DWORD*)p1; - FX_WORD hiword = (FX_WORD)(key >> 16); - FX_WORD* element = (FX_WORD*)p2; + uint16_t hiword = (uint16_t)(key >> 16); + uint16_t* element = (uint16_t*)p2; if (hiword < element[0]) { return -1; } if (hiword > element[0]) { return 1; } - FX_WORD loword = (FX_WORD)key; + uint16_t loword = (uint16_t)key; if (loword < element[1]) { return -1; } @@ -68,7 +68,7 @@ static int compareDWordRange(const void* p1, const void* p2) { extern "C" { static int compareDWordSingle(const void* p1, const void* p2) { FX_DWORD key = *(FX_DWORD*)p1; - FX_DWORD value = ((*(FX_WORD*)p2) << 16) | ((FX_WORD*)p2)[1]; + FX_DWORD value = ((*(uint16_t*)p2) << 16) | ((uint16_t*)p2)[1]; if (key < value) { return -1; } @@ -78,20 +78,20 @@ static int compareDWordSingle(const void* p1, const void* p2) { return 0; } }; -FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode) { +uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode) { if (charcode >> 16) { while (1) { if (pMap->m_DWordMapType == FXCMAP_CMap::Range) { - FX_WORD* found = - (FX_WORD*)FXSYS_bsearch(&charcode, pMap->m_pDWordMap, - pMap->m_DWordCount, 8, compareDWordRange); + uint16_t* found = + (uint16_t*)FXSYS_bsearch(&charcode, pMap->m_pDWordMap, + pMap->m_DWordCount, 8, compareDWordRange); if (found) { - return found[3] + (FX_WORD)charcode - found[1]; + return found[3] + (uint16_t)charcode - found[1]; } } else if (pMap->m_DWordMapType == FXCMAP_CMap::Single) { - FX_WORD* found = - (FX_WORD*)FXSYS_bsearch(&charcode, pMap->m_pDWordMap, - pMap->m_DWordCount, 6, compareDWordSingle); + uint16_t* found = + (uint16_t*)FXSYS_bsearch(&charcode, pMap->m_pDWordMap, + pMap->m_DWordCount, 6, compareDWordSingle); if (found) { return found[2]; } @@ -103,19 +103,19 @@ FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode) { } return 0; } - FX_WORD code = (FX_WORD)charcode; + uint16_t code = (uint16_t)charcode; while (1) { if (!pMap->m_pWordMap) { return 0; } if (pMap->m_WordMapType == FXCMAP_CMap::Single) { - FX_WORD* found = (FX_WORD*)FXSYS_bsearch( + uint16_t* found = (uint16_t*)FXSYS_bsearch( &code, pMap->m_pWordMap, pMap->m_WordCount, 4, compareWord); if (found) { return found[1]; } } else if (pMap->m_WordMapType == FXCMAP_CMap::Range) { - FX_WORD* found = (FX_WORD*)FXSYS_bsearch( + uint16_t* found = (uint16_t*)FXSYS_bsearch( &code, pMap->m_pWordMap, pMap->m_WordCount, 6, compareWordRange); if (found) { return found[2] + code - found[0]; @@ -128,11 +128,11 @@ FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode) { } return 0; } -FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid) { +FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, uint16_t cid) { while (1) { if (pMap->m_WordMapType == FXCMAP_CMap::Single) { - const FX_WORD* pCur = pMap->m_pWordMap; - const FX_WORD* pEnd = pMap->m_pWordMap + pMap->m_WordCount * 2; + const uint16_t* pCur = pMap->m_pWordMap; + const uint16_t* pEnd = pMap->m_pWordMap + pMap->m_WordCount * 2; while (pCur < pEnd) { if (pCur[1] == cid) { return pCur[0]; @@ -140,8 +140,8 @@ FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid) { pCur += 2; } } else if (pMap->m_WordMapType == FXCMAP_CMap::Range) { - const FX_WORD* pCur = pMap->m_pWordMap; - const FX_WORD* pEnd = pMap->m_pWordMap + pMap->m_WordCount * 3; + const uint16_t* pCur = pMap->m_pWordMap; + const uint16_t* pEnd = pMap->m_pWordMap + pMap->m_WordCount * 3; while (pCur < pEnd) { if (cid >= pCur[2] && cid <= pCur[2] + pCur[1] - pCur[0]) { return pCur[0] + cid - pCur[2]; @@ -156,8 +156,8 @@ FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid) { } while (1) { if (pMap->m_DWordMapType == FXCMAP_CMap::Range) { - const FX_WORD* pCur = pMap->m_pDWordMap; - const FX_WORD* pEnd = pMap->m_pDWordMap + pMap->m_DWordCount * 4; + const uint16_t* pCur = pMap->m_pDWordMap; + const uint16_t* pEnd = pMap->m_pDWordMap + pMap->m_DWordCount * 4; while (pCur < pEnd) { if (cid >= pCur[3] && cid <= pCur[3] + pCur[2] - pCur[1]) { return (((FX_DWORD)pCur[0] << 16) | pCur[1]) + cid - pCur[3]; @@ -165,8 +165,8 @@ FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid) { pCur += 4; } } else if (pMap->m_DWordMapType == FXCMAP_CMap::Single) { - const FX_WORD* pCur = pMap->m_pDWordMap; - const FX_WORD* pEnd = pMap->m_pDWordMap + pMap->m_DWordCount * 3; + const uint16_t* pCur = pMap->m_pDWordMap; + const uint16_t* pEnd = pMap->m_pDWordMap + pMap->m_DWordCount * 3; while (pCur < pEnd) { if (pCur[2] == cid) { return ((FX_DWORD)pCur[0] << 16) | pCur[1]; @@ -183,7 +183,7 @@ FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid) { } void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, - const FX_WORD*& pMap, + const uint16_t*& pMap, FX_DWORD& count) { CPDF_FontGlobals* pFontGlobals = CPDF_ModuleMgr::Get()->GetPageModule()->GetFontGlobals(); |