Lines Matching refs:encoding
316 const mbfl_encoding *const *encoding; in mbfl_name2encoding_ex() local
321 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
322 size_t name_length = strlen((*encoding)->name); in mbfl_name2encoding_ex()
324 …fprintf(stderr, "name length is not satisfying bound check: %zu %s\n", name_length, (*encoding)->n… in mbfl_name2encoding_ex()
327 unsigned int key = mbfl_name2encoding_perfect_hash((*encoding)->name, name_length); in mbfl_name2encoding_ex()
328 if (mbfl_encoding_ptr_list[mbfl_encoding_ptr_list_after_hashing[key]] != *encoding) { in mbfl_name2encoding_ex()
329 fprintf(stderr, "mbfl_name2encoding_perfect_hash: key %u %s mismatch\n", key, (*encoding)->name); in mbfl_name2encoding_ex()
341 encoding = mbfl_encoding_ptr_list + offset; in mbfl_name2encoding_ex()
342 if (strncasecmp((*encoding)->name, name, name_len) == 0) { in mbfl_name2encoding_ex()
343 return *encoding; in mbfl_name2encoding_ex()
350 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
351 if ((*encoding)->mime_name) { in mbfl_name2encoding_ex()
352 …if (strncasecmp((*encoding)->mime_name, name, name_len) == 0 && (*encoding)->mime_name[name_len] =… in mbfl_name2encoding_ex()
353 return *encoding; in mbfl_name2encoding_ex()
359 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_name2encoding_ex()
360 if ((*encoding)->aliases) { in mbfl_name2encoding_ex()
361 for (const char **alias = (*encoding)->aliases; *alias; alias++) { in mbfl_name2encoding_ex()
363 return *encoding; in mbfl_name2encoding_ex()
374 const mbfl_encoding **encoding; in mbfl_no2encoding() local
376 for (encoding = mbfl_encoding_ptr_list; *encoding; encoding++) { in mbfl_no2encoding()
377 if ((*encoding)->no_encoding == no_encoding) { in mbfl_no2encoding()
378 return *encoding; in mbfl_no2encoding()
387 const mbfl_encoding *encoding = mbfl_no2encoding(no_encoding); in mbfl_no_encoding2name() local
388 return encoding ? encoding->name : ""; in mbfl_no_encoding2name()
396 const char *mbfl_encoding_preferred_mime_name(const mbfl_encoding *encoding) in mbfl_encoding_preferred_mime_name() argument
398 if (encoding->mime_name && encoding->mime_name[0] != '\0') { in mbfl_encoding_preferred_mime_name()
399 return encoding->mime_name; in mbfl_encoding_preferred_mime_name()