| 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_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ | 7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
| 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ | 8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "core/include/fxcrt/fx_string.h" |
| 12 |
| 10 class Make_Pair; | 13 class Make_Pair; |
| 11 class CBC_QRCoder; | 14 class CBC_QRCoder; |
| 12 class CBC_QRCoderErrorCorrectionLevel; | 15 class CBC_QRCoderErrorCorrectionLevel; |
| 13 class CBC_QRCoderMode; | 16 class CBC_QRCoderMode; |
| 14 class CBC_QRCoderBitVector; | 17 class CBC_QRCoderBitVector; |
| 15 class CBC_CommonByteArray; | 18 class CBC_CommonByteArray; |
| 16 class CBC_CommonByteMatrix; | 19 class CBC_CommonByteMatrix; |
| 17 class CBC_QRCoderEncoder; | 20 |
| 18 class CBC_QRCoderEncoder { | 21 class CBC_QRCoderEncoder { |
| 19 private: | 22 private: |
| 20 const static int32_t m_alphaNumbericTable[96]; | 23 const static int32_t m_alphaNumbericTable[96]; |
| 21 | 24 |
| 22 public: | 25 public: |
| 23 CBC_QRCoderEncoder(); | 26 CBC_QRCoderEncoder(); |
| 24 virtual ~CBC_QRCoderEncoder(); | 27 virtual ~CBC_QRCoderEncoder(); |
| 25 | 28 |
| 26 static void Encode(const CFX_ByteString& content, | 29 static void Encode(const CFX_ByteString& content, |
| 27 CBC_QRCoderErrorCorrectionLevel* ecLevel, | 30 CBC_QRCoderErrorCorrectionLevel* ecLevel, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 static void SplitString(const CFX_ByteString& content, CFX_PtrArray& result); | 125 static void SplitString(const CFX_ByteString& content, CFX_PtrArray& result); |
| 123 static void AppendDataModeLenghInfo(CFX_PtrArray& splitResult, | 126 static void AppendDataModeLenghInfo(CFX_PtrArray& splitResult, |
| 124 CBC_QRCoderBitVector& headerAndDataBits, | 127 CBC_QRCoderBitVector& headerAndDataBits, |
| 125 CBC_QRCoderMode* tempMode, | 128 CBC_QRCoderMode* tempMode, |
| 126 CBC_QRCoder* qrCode, | 129 CBC_QRCoder* qrCode, |
| 127 CFX_ByteString& encoding, | 130 CFX_ByteString& encoding, |
| 128 int32_t& e); | 131 int32_t& e); |
| 129 }; | 132 }; |
| 130 | 133 |
| 131 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ | 134 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
| OLD | NEW |