MCPcopy Create free account
hub / github.com/devilsen/CZXing / GetPostCode3

Function GetPostCode3

czxing/src/main/cpp/zxing/src/maxicode/MCDecoder.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static std::string GetPostCode3(const ByteArray& bytes)
153{
154 return {
155 (char) CHARSETS[0].at(GetInt(bytes, { 39, 40, 41, 42, 31, 32 })),
156 (char) CHARSETS[0].at(GetInt(bytes, { 33, 34, 35, 36, 25, 26 })),
157 (char) CHARSETS[0].at(GetInt(bytes, { 27, 28, 29, 30, 19, 20 })),
158 (char) CHARSETS[0].at(GetInt(bytes, { 21, 22, 23, 24, 13, 14 })),
159 (char) CHARSETS[0].at(GetInt(bytes, { 15, 16, 17, 18, 7, 8 })),
160 (char) CHARSETS[0].at(GetInt(bytes, { 9, 10, 11, 12, 1, 2 })),
161 };
162}
163
164static unsigned int GetCountry(const ByteArray& bytes)
165{

Callers 1

DecoderResult DecodeFunction · 0.85

Calls 2

GetIntFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected