diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-05-07 21:32:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-07 21:32:10 +0000 |
commit | aff0dfd7f4b8644ff34a4e4334ee2b25555a6e7a (patch) | |
tree | a649fde4843d9bafb1b8541395e16b990cc506c2 /core/fxcrt/fx_codepage.h | |
parent | ab982e08126e3f2f661de0cd550a1cda5112aaf2 (diff) | |
download | pdfium-aff0dfd7f4b8644ff34a4e4334ee2b25555a6e7a.tar.xz |
Move codepage tables from cpdf_document.cpp to fx_codepage.cpp
Avoids scrolling past this noise when looking at document code.
No functional changes.
Change-Id: I4684a8cf4d8894c699cd1c980bc5fc41b2179ad1
Reviewed-on: https://pdfium-review.googlesource.com/32156
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_codepage.h')
-rw-r--r-- | core/fxcrt/fx_codepage.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/fxcrt/fx_codepage.h b/core/fxcrt/fx_codepage.h index 874f96db7f..43692286a5 100644 --- a/core/fxcrt/fx_codepage.h +++ b/core/fxcrt/fx_codepage.h @@ -7,6 +7,8 @@ #ifndef CORE_FXCRT_FX_CODEPAGE_H_ #define CORE_FXCRT_FX_CODEPAGE_H_ +#include <stdint.h> + #define FX_CODEPAGE_DefANSI 0 #define FX_CODEPAGE_Symbol 42 #define FX_CODEPAGE_MSDOS_US 437 @@ -88,4 +90,12 @@ #define FX_CHARSET_US 254 #define FX_CHARSET_OEM 255 +// Hi-bytes to unicode codepoint mapping for various code pages. +struct FX_CharsetUnicodes { + uint8_t m_Charset; + const uint16_t* m_pUnicodes; +}; + +extern const FX_CharsetUnicodes g_FX_CharsetUnicodes[8]; + #endif // CORE_FXCRT_FX_CODEPAGE_H_ |