8
9
10
11
12
13
14
15
16
17
18
19
20
21
23#include "fxbarcode/qrcode/BC_QRCoderMode.h"
27#include "core/fxcrt/fx_system.h"
28#include "third_party/base/check.h"
30CBC_QRCoderMode* CBC_QRCoderMode::
sBYTE =
nullptr;
31CBC_QRCoderMode* CBC_QRCoderMode::
sNUMERIC =
nullptr;
34CBC_QRCoderMode::CBC_QRCoderMode(std::vector<int32_t> charCountBits,
36 : m_characterCountBitsForVersions(std::move(charCountBits)), m_bits(bits) {}
41 sBYTE =
new CBC_QRCoderMode({8, 16, 16}, 0x4);
42 sALPHANUMERIC =
new CBC_QRCoderMode({9, 11, 13}, 0x2);
43 sNUMERIC =
new CBC_QRCoderMode({10, 12, 14}, 0x1);
60 if (m_characterCountBitsForVersions.empty())
66 else if (number <= 26)
71 int32_t result = m_characterCountBitsForVersions[offset];
static CBC_QRCoderMode * sNUMERIC
int32_t GetCharacterCountBits(int32_t number) const
static CBC_QRCoderMode * sBYTE
static CBC_QRCoderMode * sALPHANUMERIC