Home | History | Annotate | Download | only in oned
      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 _BC_ONEDCODABARREADER_H_
      8 #define _BC_ONEDCODABARREADER_H_
      9 class CBC_CommonBitArray;
     10 class CBC_OneDReader;
     11 class CBC_OnedCodaBarReader;
     12 class CBC_OnedCodaBarReader : public CBC_OneDReader {
     13  public:
     14   CBC_OnedCodaBarReader();
     15   virtual ~CBC_OnedCodaBarReader();
     16   CFX_ByteString DecodeRow(int32_t rowNumber,
     17                            CBC_CommonBitArray* row,
     18                            int32_t hints,
     19                            int32_t& e);
     20   CFX_Int32Array* FindAsteriskPattern(CBC_CommonBitArray* row, int32_t& e);
     21   FX_BOOL ArrayContains(const FX_CHAR array[], FX_CHAR key);
     22   FX_CHAR ToNarrowWidePattern(CFX_Int32Array* counter);
     23   static const FX_CHAR* ALPHABET_STRING;
     24 
     25   const static int32_t CHARACTER_ENCODINGS[22];
     26 
     27   const static int32_t minCharacterLength;
     28 
     29   const static FX_CHAR STARTEND_ENCODING[8];
     30 };
     31 #endif
     32