Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: xfa/src/fxbarcode/oned/BC_OnedCodaBarReader.h

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_
8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
11 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h" 11 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h"
12 12
13 class CBC_CommonBitArray; 13 class CBC_CommonBitArray;
14 class CBC_OneDReader; 14 class CBC_OneDReader;
15 15
16 class CBC_OnedCodaBarReader : public CBC_OneDReader { 16 class CBC_OnedCodaBarReader : public CBC_OneDReader {
17 public: 17 public:
18 CBC_OnedCodaBarReader(); 18 CBC_OnedCodaBarReader();
19 virtual ~CBC_OnedCodaBarReader(); 19 virtual ~CBC_OnedCodaBarReader();
20 CFX_ByteString DecodeRow(int32_t rowNumber, 20 CFX_ByteString DecodeRow(int32_t rowNumber,
21 CBC_CommonBitArray* row, 21 CBC_CommonBitArray* row,
22 int32_t hints, 22 int32_t hints,
23 int32_t& e); 23 int32_t& e);
24 CFX_Int32Array* FindAsteriskPattern(CBC_CommonBitArray* row, int32_t& e); 24 CFX_Int32Array* FindAsteriskPattern(CBC_CommonBitArray* row, int32_t& e);
25 FX_BOOL ArrayContains(const FX_CHAR array[], FX_CHAR key); 25 FX_BOOL ArrayContains(const FX_CHAR array[], FX_CHAR key);
26 FX_CHAR ToNarrowWidePattern(CFX_Int32Array* counter); 26 FX_CHAR ToNarrowWidePattern(CFX_Int32Array* counter);
27
27 static const FX_CHAR* ALPHABET_STRING; 28 static const FX_CHAR* ALPHABET_STRING;
29 static const int32_t CHARACTER_ENCODINGS[22];
28 30
29 const static int32_t CHARACTER_ENCODINGS[22]; 31 private:
30 32 static const int32_t minCharacterLength = 3;
31 const static int32_t minCharacterLength; 33 static const FX_CHAR STARTEND_ENCODING[8];
32
33 const static FX_CHAR STARTEND_ENCODING[8];
34 }; 34 };
35 35
36 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_ 36 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDCODABARREADER_H_
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/oned/BC_OneDimReader.cpp ('k') | xfa/src/fxbarcode/oned/BC_OnedCodaBarReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698