Home
last modified time | relevance | path

Searched refs:calcSegmentBitLength (Results 1 – 2 of 2) sorted by relevance

/third_party/qrcodegen/c/
Dqrcodegen.c84 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
152 seg.bitLength = calcSegmentBitLength(seg.mode, textLen); in qrcodegen_encodeText()
172 seg.bitLength = calcSegmentBitLength(seg.mode, dataLen); in qrcodegen_encodeBinary()
833 int temp = calcSegmentBitLength(mode, numChars); in qrcodegen_calcSegmentBufferSize()
849 testable int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars) { in calcSegmentBitLength() function
880 result.bitLength = calcSegmentBitLength(result.mode, len); in qrcodegen_makeBytes()
896 int bitLen = calcSegmentBitLength(result.mode, len); in qrcodegen_makeNumeric()
930 int bitLen = calcSegmentBitLength(result.mode, len); in qrcodegen_makeAlphanumeric()
Dqrcodegen-test.c60 int calcSegmentBitLength(enum qrcodegen_Mode mode, size_t numChars);
753 assert(calcSegmentBitLength(qrcodegen_Mode_NUMERIC, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
782 assert(calcSegmentBitLength(qrcodegen_Mode_ALPHANUMERIC, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
808 assert(calcSegmentBitLength(qrcodegen_Mode_BYTE, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
835 assert(calcSegmentBitLength(qrcodegen_Mode_KANJI, CASES[i].numChars) == CASES[i].result); in testCalcSegmentBitLength()
840 assert(calcSegmentBitLength(qrcodegen_Mode_ECI, 0) == 24); in testCalcSegmentBitLength()