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_QRCODE_BC_QRCODERENCODER_H_ | 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ | 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 static void AppendNumericBytes(const CFX_ByteString& content, | 55 static void AppendNumericBytes(const CFX_ByteString& content, |
56 CBC_QRCoderBitVector* bits, | 56 CBC_QRCoderBitVector* bits, |
57 int32_t& e); | 57 int32_t& e); |
58 static void AppendAlphaNumericBytes(const CFX_ByteString& content, | 58 static void AppendAlphaNumericBytes(const CFX_ByteString& content, |
59 CBC_QRCoderBitVector* bits, | 59 CBC_QRCoderBitVector* bits, |
60 int32_t& e); | 60 int32_t& e); |
61 static void Append8BitBytes(const CFX_ByteString& content, | 61 static void Append8BitBytes(const CFX_ByteString& content, |
62 CBC_QRCoderBitVector* bits, | 62 CBC_QRCoderBitVector* bits, |
63 CFX_ByteString encoding, | 63 CFX_ByteString encoding, |
64 int32_t& e); | 64 int32_t& e); |
65 static void Append8BitBytes(CFX_ByteArray& bytes, | 65 static void Append8BitBytes(CFX_ArrayTemplate<uint8_t>& bytes, |
66 CBC_QRCoderBitVector* bits, | 66 CBC_QRCoderBitVector* bits, |
67 int32_t& e); | 67 int32_t& e); |
68 static void AppendKanjiBytes(const CFX_ByteString& content, | 68 static void AppendKanjiBytes(const CFX_ByteString& content, |
69 CBC_QRCoderBitVector* bits, | 69 CBC_QRCoderBitVector* bits, |
70 int32_t& e); | 70 int32_t& e); |
71 static void AppendGBKBytes(const CFX_ByteString& content, | 71 static void AppendGBKBytes(const CFX_ByteString& content, |
72 CBC_QRCoderBitVector* bits, | 72 CBC_QRCoderBitVector* bits, |
73 int32_t& e); | 73 int32_t& e); |
74 static void InitQRCode(int32_t numInputBytes, | 74 static void InitQRCode(int32_t numInputBytes, |
75 int32_t versionNumber, | 75 int32_t versionNumber, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 const std::vector<std::pair<CBC_QRCoderMode*, CFX_ByteString>>& | 131 const std::vector<std::pair<CBC_QRCoderMode*, CFX_ByteString>>& |
132 splitResult, | 132 splitResult, |
133 CBC_QRCoderBitVector& headerAndDataBits, | 133 CBC_QRCoderBitVector& headerAndDataBits, |
134 CBC_QRCoderMode* tempMode, | 134 CBC_QRCoderMode* tempMode, |
135 CBC_QRCoder* qrCode, | 135 CBC_QRCoder* qrCode, |
136 CFX_ByteString& encoding, | 136 CFX_ByteString& encoding, |
137 int32_t& e); | 137 int32_t& e); |
138 }; | 138 }; |
139 | 139 |
140 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ | 140 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERENCODER_H_ |
OLD | NEW |