diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-22 18:03:43 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-23 01:15:51 +0000 |
commit | 1b02d01804039a9f0584c081294ceb07e52b9bdc (patch) | |
tree | c44fa329a16bcfbfabe77311f53ed415fd66a4e3 /fxbarcode/datamatrix/BC_HighLevelEncoder.h | |
parent | b45324bfb414acc595e478dc7dc63ac43c792580 (diff) | |
download | pdfium-1b02d01804039a9f0584c081294ceb07e52b9bdc.tar.xz |
Remove CBC_HighLevelEncoder::isSpecialB256().
It just returns false. Also make more CBC_HighLevelEncoder members
const.
Change-Id: I0236e84db0d8b5e5fa1a99ebc4a809770a332471
Reviewed-on: https://pdfium-review.googlesource.com/5739
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix/BC_HighLevelEncoder.h')
-rw-r--r-- | fxbarcode/datamatrix/BC_HighLevelEncoder.h | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/fxbarcode/datamatrix/BC_HighLevelEncoder.h b/fxbarcode/datamatrix/BC_HighLevelEncoder.h index 6f0db292c9..46789d6f52 100644 --- a/fxbarcode/datamatrix/BC_HighLevelEncoder.h +++ b/fxbarcode/datamatrix/BC_HighLevelEncoder.h @@ -40,24 +40,14 @@ class CBC_HighLevelEncoder : public CBC_SymbolShapeHint { static int32_t determineConsecutiveDigitCount(CFX_WideString msg, int32_t startpos); - public: - static wchar_t LATCH_TO_C40; - static wchar_t LATCH_TO_BASE256; - static wchar_t UPPER_SHIFT; - static wchar_t LATCH_TO_ANSIX12; - static wchar_t LATCH_TO_TEXT; - static wchar_t LATCH_TO_EDIFACT; - static wchar_t C40_UNLATCH; - static wchar_t X12_UNLATCH; - - private: - static wchar_t PAD; - static wchar_t MACRO_05; - static wchar_t MACRO_06; - static const wchar_t* MACRO_05_HEADER; - static const wchar_t* MACRO_06_HEADER; - static const wchar_t MACRO_TRAILER; - std::vector<uint8_t> m_bytearray; + static const wchar_t LATCH_TO_C40; + static const wchar_t LATCH_TO_BASE256; + static const wchar_t UPPER_SHIFT; + static const wchar_t LATCH_TO_ANSIX12; + static const wchar_t LATCH_TO_TEXT; + static const wchar_t LATCH_TO_EDIFACT; + static const wchar_t C40_UNLATCH; + static const wchar_t X12_UNLATCH; private: static wchar_t randomize253State(wchar_t ch, int32_t codewordPosition); @@ -71,7 +61,15 @@ class CBC_HighLevelEncoder : public CBC_SymbolShapeHint { static bool isNativeX12(wchar_t ch); static bool isX12TermSep(wchar_t ch); static bool isNativeEDIFACT(wchar_t ch); - static bool isSpecialB256(wchar_t ch); + + static const wchar_t PAD; + static const wchar_t MACRO_05; + static const wchar_t MACRO_06; + static const wchar_t MACRO_05_HEADER[]; + static const wchar_t MACRO_06_HEADER[]; + static const wchar_t MACRO_TRAILER; + + std::vector<uint8_t> m_bytearray; }; #endif // FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_ |