Lines Matching refs:encoding
206 const mbfl_encoding *encoding; in mbfl_name2encoding() local
214 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL){ in mbfl_name2encoding()
215 if (strcasecmp(encoding->name, name) == 0) { in mbfl_name2encoding()
216 return encoding; in mbfl_name2encoding()
222 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL) { in mbfl_name2encoding()
223 if (encoding->mime_name != NULL) { in mbfl_name2encoding()
224 if (strcasecmp(encoding->mime_name, name) == 0) { in mbfl_name2encoding()
225 return encoding; in mbfl_name2encoding()
232 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL) { in mbfl_name2encoding()
233 if (encoding->aliases != NULL) { in mbfl_name2encoding()
235 while ((*encoding->aliases)[j] != NULL) { in mbfl_name2encoding()
236 if (strcasecmp((*encoding->aliases)[j], name) == 0) { in mbfl_name2encoding()
237 return encoding; in mbfl_name2encoding()
250 const mbfl_encoding *encoding; in mbfl_no2encoding() local
254 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL){ in mbfl_no2encoding()
255 if (encoding->no_encoding == no_encoding) { in mbfl_no2encoding()
256 return encoding; in mbfl_no2encoding()
266 const mbfl_encoding *encoding; in mbfl_name2no_encoding() local
268 encoding = mbfl_name2encoding(name); in mbfl_name2no_encoding()
269 if (encoding == NULL) { in mbfl_name2no_encoding()
272 return encoding->no_encoding; in mbfl_name2no_encoding()
279 const mbfl_encoding *encoding; in mbfl_no_encoding2name() local
281 encoding = mbfl_no2encoding(no_encoding); in mbfl_no_encoding2name()
282 if (encoding == NULL) { in mbfl_no_encoding2name()
285 return encoding->name; in mbfl_no_encoding2name()
298 const mbfl_encoding *encoding; in mbfl_no2preferred_mime_name() local
300 encoding = mbfl_no2encoding(no_encoding); in mbfl_no2preferred_mime_name()
301 if (encoding != NULL && encoding->mime_name != NULL && encoding->mime_name[0] != '\0') { in mbfl_no2preferred_mime_name()
302 return encoding->mime_name; in mbfl_no2preferred_mime_name()