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