diff options
author | Lei Zhang <thestig@chromium.org> | 2017-04-27 13:21:00 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-27 21:25:59 +0000 |
commit | 6714ff81237e36ce0a21dbbff3e0a549dfc561a7 (patch) | |
tree | 4d479e4cb214b17d2b41c88ff907500c6910d1a7 /fxbarcode/datamatrix/BC_EdifactEncoder.cpp | |
parent | f452f56021f2f1455a6f556836dc00ddda9114a9 (diff) | |
download | pdfium-6714ff81237e36ce0a21dbbff3e0a549dfc561a7.tar.xz |
Remove CBC_HighLevelEncoder::illegalCharacter().
It always return a failure.
Change-Id: Ib318bbdb99b3ea38fba8ceb5733c6dcb8f14bbbf
Reviewed-on: https://pdfium-review.googlesource.com/4590
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix/BC_EdifactEncoder.cpp')
-rw-r--r-- | fxbarcode/datamatrix/BC_EdifactEncoder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fxbarcode/datamatrix/BC_EdifactEncoder.cpp b/fxbarcode/datamatrix/BC_EdifactEncoder.cpp index 61eea93d33..954dcbcba6 100644 --- a/fxbarcode/datamatrix/BC_EdifactEncoder.cpp +++ b/fxbarcode/datamatrix/BC_EdifactEncoder.cpp @@ -20,9 +20,10 @@ * limitations under the License. */ +#include "fxbarcode/datamatrix/BC_EdifactEncoder.h" + #include "fxbarcode/BC_Dimension.h" #include "fxbarcode/common/BC_CommonBitMatrix.h" -#include "fxbarcode/datamatrix/BC_EdifactEncoder.h" #include "fxbarcode/datamatrix/BC_Encoder.h" #include "fxbarcode/datamatrix/BC_EncoderContext.h" #include "fxbarcode/datamatrix/BC_HighLevelEncoder.h" @@ -115,15 +116,17 @@ void CBC_EdifactEncoder::handleEOD(CBC_EncoderContext& context, } context.signalEncoderChange(ASCII_ENCODATION); } + void CBC_EdifactEncoder::encodeChar(wchar_t c, CFX_WideString& sb, int32_t& e) { if (c >= ' ' && c <= '?') { sb += c; } else if (c >= '@' && c <= '^') { sb += (wchar_t)(c - 64); } else { - CBC_HighLevelEncoder::illegalCharacter(c, e); + e = BCExceptionIllegalArgument; } } + CFX_WideString CBC_EdifactEncoder::encodeToCodewords(CFX_WideString sb, int32_t startPos, int32_t& e) { |