diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-06 15:27:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-06 15:27:20 +0000 |
commit | 05ac5961fec712fe9d0f364012982620d814aade (patch) | |
tree | 519f12eb06a44c41697dc3f14cf58c47ed7d63d3 /core/fpdfapi/cmaps/CNS1 | |
parent | 52008e9c520e8b1a7e2a9d76578ac2b27fe3e06a (diff) | |
download | pdfium-05ac5961fec712fe9d0f364012982620d814aade.tar.xz |
Pack struct FXCMAP_CMap more densely to save 1 KB.
Change-Id: Ida9738f4ad7ef266c2edb794f12dcf49b64fc590
Reviewed-on: https://pdfium-review.googlesource.com/17750
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/cmaps/CNS1')
-rw-r--r-- | core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp b/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp index bb57381400..7d39fd93ad 100644 --- a/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp +++ b/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp @@ -12,34 +12,34 @@ #include "core/fpdfapi/page/cpdf_pagemodule.h" static const FXCMAP_CMap g_FXCMAP_CNS1_cmaps[] = { - {"B5pc-H", FXCMAP_CMap::Range, g_FXCMAP_B5pc_H_0, 247, FXCMAP_CMap::None, - nullptr, 0, 0}, - {"B5pc-V", FXCMAP_CMap::Range, g_FXCMAP_B5pc_V_0, 12, FXCMAP_CMap::None, - nullptr, 0, -1}, - {"HKscs-B5-H", FXCMAP_CMap::Range, g_FXCMAP_HKscs_B5_H_5, 1210, - FXCMAP_CMap::None, nullptr, 0, 0}, - {"HKscs-B5-V", FXCMAP_CMap::Range, g_FXCMAP_HKscs_B5_V_5, 13, - FXCMAP_CMap::None, nullptr, 0, -1}, - {"ETen-B5-H", FXCMAP_CMap::Range, g_FXCMAP_ETen_B5_H_0, 254, - FXCMAP_CMap::None, nullptr, 0, 0}, - {"ETen-B5-V", FXCMAP_CMap::Range, g_FXCMAP_ETen_B5_V_0, 13, - FXCMAP_CMap::None, nullptr, 0, -1}, - {"ETenms-B5-H", FXCMAP_CMap::Range, g_FXCMAP_ETenms_B5_H_0, 1, - FXCMAP_CMap::None, nullptr, 0, -2}, - {"ETenms-B5-V", FXCMAP_CMap::Range, g_FXCMAP_ETenms_B5_V_0, 18, - FXCMAP_CMap::None, nullptr, 0, -1}, - {"CNS-EUC-H", FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_H_0, 157, - FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_H_0_DWord, 238, 0}, - {"CNS-EUC-V", FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_V_0, 180, - FXCMAP_CMap::Range, g_FXCMAP_CNS_EUC_V_0_DWord, 261, 0}, - {"UniCNS-UCS2-H", FXCMAP_CMap::Range, g_FXCMAP_UniCNS_UCS2_H_3, 16418, - FXCMAP_CMap::None, nullptr, 0, 0}, - {"UniCNS-UCS2-V", FXCMAP_CMap::Range, g_FXCMAP_UniCNS_UCS2_V_3, 13, - FXCMAP_CMap::None, nullptr, 0, -1}, - {"UniCNS-UTF16-H", FXCMAP_CMap::Single, g_FXCMAP_UniCNS_UTF16_H_0, 14557, - FXCMAP_CMap::None, nullptr, 0, 0}, - {"UniCNS-UTF16-V", FXCMAP_CMap::Range, g_FXCMAP_UniCNS_UCS2_V_3, 13, - FXCMAP_CMap::None, nullptr, 0, -1}, + {"B5pc-H", g_FXCMAP_B5pc_H_0, nullptr, 247, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, 0}, + {"B5pc-V", g_FXCMAP_B5pc_V_0, nullptr, 12, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, -1}, + {"HKscs-B5-H", g_FXCMAP_HKscs_B5_H_5, nullptr, 1210, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, 0}, + {"HKscs-B5-V", g_FXCMAP_HKscs_B5_V_5, nullptr, 13, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, -1}, + {"ETen-B5-H", g_FXCMAP_ETen_B5_H_0, nullptr, 254, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, 0}, + {"ETen-B5-V", g_FXCMAP_ETen_B5_V_0, nullptr, 13, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, -1}, + {"ETenms-B5-H", g_FXCMAP_ETenms_B5_H_0, nullptr, 1, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, -2}, + {"ETenms-B5-V", g_FXCMAP_ETenms_B5_V_0, nullptr, 18, 0, FXCMAP_CMap::Range, + FXCMAP_CMap::None, -1}, + {"CNS-EUC-H", g_FXCMAP_CNS_EUC_H_0, g_FXCMAP_CNS_EUC_H_0_DWord, 157, 238, + FXCMAP_CMap::Range, FXCMAP_CMap::Range, 0}, + {"CNS-EUC-V", g_FXCMAP_CNS_EUC_V_0, g_FXCMAP_CNS_EUC_V_0_DWord, 180, 261, + FXCMAP_CMap::Range, FXCMAP_CMap::Range, 0}, + {"UniCNS-UCS2-H", g_FXCMAP_UniCNS_UCS2_H_3, nullptr, 16418, 0, + FXCMAP_CMap::Range, FXCMAP_CMap::None, 0}, + {"UniCNS-UCS2-V", g_FXCMAP_UniCNS_UCS2_V_3, nullptr, 13, 0, + FXCMAP_CMap::Range, FXCMAP_CMap::None, -1}, + {"UniCNS-UTF16-H", g_FXCMAP_UniCNS_UTF16_H_0, nullptr, 14557, 0, + FXCMAP_CMap::Single, FXCMAP_CMap::None, 0}, + {"UniCNS-UTF16-V", g_FXCMAP_UniCNS_UCS2_V_3, nullptr, 13, 0, + FXCMAP_CMap::Range, FXCMAP_CMap::None, -1}, }; void CPDF_ModuleMgr::LoadEmbeddedCNS1CMaps() { |