Lines Matching defs:charset
38 const char *charset;
380 char *charset, *encoding, *end;
401 ((charset = strstr(tail, "=?")) != NULL)
402 && (((encoding = strchr(charset + 2, '?')) != NULL)
405 // found "=?...charset...?e?...text...?= (e == encoding)
406 // ^charset ^encoding ^end
409 // Copy non-encoded text (from tail up to charset) to the output.
415 for (int i = 0; i < charset-tail; i++) {
422 if (string != tail && tail != charset)
423 memmove(string, tail, charset-tail);
424 string += charset-tail;
426 tail = charset;
430 // =?...charset...?e?...text...?= (e == encoding)
431 // ^charset ^encoding ^end
432 charset += 2;
436 // find the charset this text is in now
437 size_t cLen = encoding - 1 - charset;
442 memcpy(charsetName, charset, cLen);
456 // unidentified charset
464 // else we've successfully identified the charset
519 charset = *bufp + (charset-head);
555 utf8_to_rfc2047 (char **bufp, ssize_t length, uint32 charset, char encoding)
566 void ConvertWordToCharset (uint32 charset) {
571 mail_convert_from_utf8 (charset, originalWord.String(),
639 currentWord->ConvertWordToCharset (charset);
660 currentWord->ConvertWordToCharset (charset);
679 for (int32 i = 0; mail_charsets[i].charset != NULL; i++) {
680 if (mail_charsets[i].flavor == charset) {
681 charset_dec = mail_charsets[i].charset;
705 currentWord->ConvertWordToCharset (charset);