Lines Matching refs:str
53 parse_charset (char *str)
57 if (!str || !*str)
60 str = strcasestr (str, "charset=");
61 if (!str)
64 str += 8;
65 charset = str;
72 charset = strdupdelim (str, charset);
120 /* Try converting string str from locale to UTF-8. Return a new string
121 on success, or str on error or if conversion isn't needed. */
123 locale_to_utf8 (const char *str)
136 return str;
143 return str;
146 if (do_conversion (l2u, (char *) str, strlen ((char *) str), &new))
149 return str;
263 /* Try to transcode string str from remote encoding to UTF-8. On success, *new
266 remote_to_utf8 (struct iri *i, const char *str, const char **new)
278 if (do_conversion (cd, (char *) str, strlen ((char *) str), (char **) new))
284 if (!strcmp (str, *new))