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 XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 7 #ifndef XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 8 #define XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
9 | 9 |
10 #include "core/include/fxcrt/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 #include "xfa/fxbarcode/oned/BC_OneDimWriter.h" | 12 #include "xfa/fxbarcode/oned/BC_OneDimWriter.h" |
13 | 13 |
14 class CBC_OnedCode128Writer : public CBC_OneDimWriter { | 14 class CBC_OnedCode128Writer : public CBC_OneDimWriter { |
15 public: | 15 public: |
16 CBC_OnedCode128Writer(); | 16 CBC_OnedCode128Writer(); |
17 explicit CBC_OnedCode128Writer(BC_TYPE type); | 17 explicit CBC_OnedCode128Writer(BC_TYPE type); |
18 virtual ~CBC_OnedCode128Writer(); | 18 virtual ~CBC_OnedCode128Writer(); |
19 | 19 |
20 uint8_t* Encode(const CFX_ByteString& contents, | 20 uint8_t* Encode(const CFX_ByteString& contents, |
21 BCFORMAT format, | 21 BCFORMAT format, |
(...skipping 25 matching lines...) Expand all Loading... |
47 FX_BOOL IsDigits(const CFX_ByteString& contents, | 47 FX_BOOL IsDigits(const CFX_ByteString& contents, |
48 int32_t start, | 48 int32_t start, |
49 int32_t length); | 49 int32_t length); |
50 int32_t Encode128B(const CFX_ByteString& contents, CFX_PtrArray& patterns); | 50 int32_t Encode128B(const CFX_ByteString& contents, CFX_PtrArray& patterns); |
51 int32_t Encode128C(const CFX_ByteString& contents, CFX_PtrArray& patterns); | 51 int32_t Encode128C(const CFX_ByteString& contents, CFX_PtrArray& patterns); |
52 | 52 |
53 BC_TYPE m_codeFormat; | 53 BC_TYPE m_codeFormat; |
54 }; | 54 }; |
55 | 55 |
56 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ | 56 #endif // XFA_FXBARCODE_ONED_BC_ONEDCODE128WRITER_H_ |
OLD | NEW |