MCPcopy Create free account
hub / github.com/c3d/tao3D / InitializeDecodingLookupArray

Method InitializeDecodingLookupArray

libcryptopp/cryptopp/basecode.cpp:169–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void BaseN_Decoder::InitializeDecodingLookupArray(int *lookup, const byte *alphabet, unsigned int base, bool caseInsensitive)
170{
171 std::fill(lookup, lookup+256, -1);
172
173 for (unsigned int i=0; i<base; i++)
174 {
175 if (caseInsensitive && isalpha(alphabet[i]))
176 {
177 assert(lookup[toupper(alphabet[i])] == -1);
178 lookup[toupper(alphabet[i])] = i;
179 assert(lookup[tolower(alphabet[i])] == -1);
180 lookup[tolower(alphabet[i])] = i;
181 }
182 else
183 {
184 assert(lookup[alphabet[i]] == -1);
185 lookup[alphabet[i]] = i;
186 }
187 }
188}
189
190void Grouper::IsolatedInitialize(const NameValuePairs &parameters)
191{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected