| 165 | } |
| 166 | |
| 167 | static void DecodeNumericSegment(BitSource& bits, int count, Content& result) |
| 168 | { |
| 169 | result.switchEncoding(CharacterSet::ISO8859_1); |
| 170 | result.reserve(count); |
| 171 | |
| 172 | while (count) { |
| 173 | int n = std::min(count, 3); |
| 174 | int nDigits = bits.readBits(1 + 3 * n); // read 4, 7 or 10 bits into 1, 2 or 3 digits |
| 175 | result.append(ZXing::ToString(nDigits, n)); |
| 176 | count -= n; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | static ECI ParseECIValue(BitSource& bits) |
| 181 | { |
no test coverage detected