| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ | |
| 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ | |
| 9 | |
| 10 #include "core/include/fxcrt/fx_basic.h" | |
| 11 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h" | |
| 12 | |
| 13 class CBC_CommonBitArray; | |
| 14 class CBC_OneDReader; | |
| 15 | |
| 16 class CBC_OnedCodaBarReader : public CBC_OneDReader { | |
| 17 public: | |
| 18 CBC_OnedCodaBarReader(); | |
| 19 virtual ~CBC_OnedCodaBarReader(); | |
| 20 CFX_ByteString DecodeRow(int32_t rowNumber, | |
| 21 CBC_CommonBitArray* row, | |
| 22 int32_t hints, | |
| 23 int32_t& e); | |
| 24 CFX_Int32Array* FindAsteriskPattern(CBC_CommonBitArray* row, int32_t& e); | |
| 25 FX_BOOL ArrayContains(const FX_CHAR array[], FX_CHAR key); | |
| 26 FX_CHAR ToNarrowWidePattern(CFX_Int32Array* counter); | |
| 27 | |
| 28 static const FX_CHAR* ALPHABET_STRING; | |
| 29 static const int32_t CHARACTER_ENCODINGS[22]; | |
| 30 | |
| 31 private: | |
| 32 static const int32_t minCharacterLength = 3; | |
| 33 static const FX_CHAR STARTEND_ENCODING[8]; | |
| 34 }; | |
| 35 | |
| 36 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ | |
| OLD | NEW |