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

Side by Side Diff: xfa/fxbarcode/datamatrix/BC_HighLevelEncoder.h

Issue 2067903002: Make code compile with clang_use_chrome_plugin (part III) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 6 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
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h ('k') | xfa/fxbarcode/datamatrix/BC_SymbolInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_ 7 #ifndef XFA_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_
8 #define XFA_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_ 8 #define XFA_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_
9 9
10 #include "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h" 10 #include "xfa/fxbarcode/datamatrix/BC_SymbolShapeHint.h"
11 11
12 #define ASCII_ENCODATION 0 12 #define ASCII_ENCODATION 0
13 #define C40_ENCODATION 1 13 #define C40_ENCODATION 1
14 #define TEXT_ENCODATION 2 14 #define TEXT_ENCODATION 2
15 #define X12_ENCODATION 3 15 #define X12_ENCODATION 3
16 #define EDIFACT_ENCODATION 4 16 #define EDIFACT_ENCODATION 4
17 #define BASE256_ENCODATION 5 17 #define BASE256_ENCODATION 5
18 18
19 class CBC_HighLevelEncoder : public CBC_SymbolShapeHint { 19 class CBC_HighLevelEncoder : public CBC_SymbolShapeHint {
20 public: 20 public:
21 CBC_HighLevelEncoder(); 21 CBC_HighLevelEncoder();
22 virtual ~CBC_HighLevelEncoder(); 22 ~CBC_HighLevelEncoder() override;
23
23 CFX_ByteArray& getBytesForMessage(CFX_WideString msg); 24 CFX_ByteArray& getBytesForMessage(CFX_WideString msg);
24 static CFX_WideString encodeHighLevel(CFX_WideString msg, 25 static CFX_WideString encodeHighLevel(CFX_WideString msg,
25 CFX_WideString ecLevel, 26 CFX_WideString ecLevel,
26 int32_t& e); 27 int32_t& e);
27 static CFX_WideString encodeHighLevel(CFX_WideString msg, 28 static CFX_WideString encodeHighLevel(CFX_WideString msg,
28 CFX_WideString ecLevel, 29 CFX_WideString ecLevel,
29 SymbolShapeHint shape, 30 SymbolShapeHint shape,
30 CBC_Dimension* minSize, 31 CBC_Dimension* minSize,
31 CBC_Dimension* maxSize, 32 CBC_Dimension* maxSize,
32 int32_t& e); 33 int32_t& e);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 static int32_t getMinimumCount(CFX_ByteArray& mins); 68 static int32_t getMinimumCount(CFX_ByteArray& mins);
68 static FX_BOOL isNativeC40(FX_WCHAR ch); 69 static FX_BOOL isNativeC40(FX_WCHAR ch);
69 static FX_BOOL isNativeText(FX_WCHAR ch); 70 static FX_BOOL isNativeText(FX_WCHAR ch);
70 static FX_BOOL isNativeX12(FX_WCHAR ch); 71 static FX_BOOL isNativeX12(FX_WCHAR ch);
71 static FX_BOOL isX12TermSep(FX_WCHAR ch); 72 static FX_BOOL isX12TermSep(FX_WCHAR ch);
72 static FX_BOOL isNativeEDIFACT(FX_WCHAR ch); 73 static FX_BOOL isNativeEDIFACT(FX_WCHAR ch);
73 static FX_BOOL isSpecialB256(FX_WCHAR ch); 74 static FX_BOOL isSpecialB256(FX_WCHAR ch);
74 }; 75 };
75 76
76 #endif // XFA_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_ 77 #endif // XFA_FXBARCODE_DATAMATRIX_BC_HIGHLEVELENCODER_H_
OLDNEW
« no previous file with comments | « xfa/fxbarcode/datamatrix/BC_ErrorCorrection.h ('k') | xfa/fxbarcode/datamatrix/BC_SymbolInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698