| 167 | } |
| 168 | |
| 169 | void 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 | |
| 190 | void Grouper::IsolatedInitialize(const NameValuePairs ¶meters) |
| 191 | { |
nothing calls this directly
no outgoing calls
no test coverage detected