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_HIGHLEVALENCODER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_DATAMATRIX_BC_HIGHLEVALENCODER_H_ |
8 #define _BC_HIGHLEVALENCODER_H_ | 8 #define XFA_SRC_FXBARCODE_DATAMATRIX_BC_HIGHLEVALENCODER_H_ |
| 9 |
9 class CBC_SymbolShapeHint; | 10 class CBC_SymbolShapeHint; |
10 class CBC_HighLevelEncoder; | 11 class CBC_HighLevelEncoder; |
11 #define ASCII_ENCODATION 0 | 12 #define ASCII_ENCODATION 0 |
12 #define C40_ENCODATION 1 | 13 #define C40_ENCODATION 1 |
13 #define TEXT_ENCODATION 2 | 14 #define TEXT_ENCODATION 2 |
14 #define X12_ENCODATION 3 | 15 #define X12_ENCODATION 3 |
15 #define EDIFACT_ENCODATION 4 | 16 #define EDIFACT_ENCODATION 4 |
16 #define BASE256_ENCODATION 5 | 17 #define BASE256_ENCODATION 5 |
17 class CBC_HighLevelEncoder : public CBC_SymbolShapeHint { | 18 class CBC_HighLevelEncoder : public CBC_SymbolShapeHint { |
18 public: | 19 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 int32_t min, | 64 int32_t min, |
64 CFX_ByteArray& mins); | 65 CFX_ByteArray& mins); |
65 static int32_t getMinimumCount(CFX_ByteArray& mins); | 66 static int32_t getMinimumCount(CFX_ByteArray& mins); |
66 static FX_BOOL isNativeC40(FX_WCHAR ch); | 67 static FX_BOOL isNativeC40(FX_WCHAR ch); |
67 static FX_BOOL isNativeText(FX_WCHAR ch); | 68 static FX_BOOL isNativeText(FX_WCHAR ch); |
68 static FX_BOOL isNativeX12(FX_WCHAR ch); | 69 static FX_BOOL isNativeX12(FX_WCHAR ch); |
69 static FX_BOOL isX12TermSep(FX_WCHAR ch); | 70 static FX_BOOL isX12TermSep(FX_WCHAR ch); |
70 static FX_BOOL isNativeEDIFACT(FX_WCHAR ch); | 71 static FX_BOOL isNativeEDIFACT(FX_WCHAR ch); |
71 static FX_BOOL isSpecialB256(FX_WCHAR ch); | 72 static FX_BOOL isSpecialB256(FX_WCHAR ch); |
72 }; | 73 }; |
73 #endif | 74 |
| 75 #endif // XFA_SRC_FXBARCODE_DATAMATRIX_BC_HIGHLEVALENCODER_H_ |
OLD | NEW |