|
|
@ -39,6 +39,8 @@ using std::vector;
|
|
|
|
|
|
|
|
|
|
|
|
namespace qrcodegen {
|
|
|
|
namespace qrcodegen {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---- Class QrSegment ----*/
|
|
|
|
|
|
|
|
|
|
|
|
QrSegment::Mode::Mode(int mode, int cc0, int cc1, int cc2) :
|
|
|
|
QrSegment::Mode::Mode(int mode, int cc0, int cc1, int cc2) :
|
|
|
|
modeBits(mode) {
|
|
|
|
modeBits(mode) {
|
|
|
|
numBitsCharCount[0] = cc0;
|
|
|
|
numBitsCharCount[0] = cc0;
|
|
|
@ -229,6 +231,8 @@ const char *QrSegment::ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVW
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---- Class QrCode ----*/
|
|
|
|
|
|
|
|
|
|
|
|
int QrCode::getFormatBits(Ecc ecl) {
|
|
|
|
int QrCode::getFormatBits(Ecc ecl) {
|
|
|
|
switch (ecl) {
|
|
|
|
switch (ecl) {
|
|
|
|
case Ecc::LOW : return 1;
|
|
|
|
case Ecc::LOW : return 1;
|
|
|
@ -820,6 +824,8 @@ data_too_long::data_too_long(const std::string &msg) :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*---- Class BitBuffer ----*/
|
|
|
|
|
|
|
|
|
|
|
|
BitBuffer::BitBuffer()
|
|
|
|
BitBuffer::BitBuffer()
|
|
|
|
: std::vector<bool>() {}
|
|
|
|
: std::vector<bool>() {}
|
|
|
|
|
|
|
|
|
|
|
|