Lines Matching refs:to
18 * along with this program; if not, write to the Free Software
40 /* Thanks to Peter Harris <peter.harris@hummingbird.com> for this win32
148 int utf8_encode(const char *from, char **to)
168 fprintf(stderr, "Out of memory processing string to UTF8\n");
184 *to = make_utf8_string(unicode);
190 int utf8_decode(const char *from, char **to)
201 fprintf(stderr, "Out of memory processing string from UTF8 to UNICODE16\n");
218 *to = safe_calloc_((size_t)chars + 1, sizeof(unsigned char));
219 if(*to == NULL)
221 fprintf(stderr, "Out of memory processing string to local charset\n");
227 -1, *to, chars, NULL, NULL);
232 free(*to);
233 *to = NULL;
265 char **to, size_t *tolen)
270 ret = iconvert(fromcode, tocode, from, fromlen, to, tolen);
276 ret = charset_convert(fromcode, tocode, from, fromlen, to, tolen);
285 const char *from, char **to, char replace)
292 ret = convert_buffer(fromcode, tocode, from, fromlen, to, 0);
302 *to = s;
309 int utf8_encode(const char *from, char **to)
311 return convert_string(current_charset(), "UTF-8", from, to, '#');
314 int utf8_decode(const char *from, char **to)
316 return convert_string("UTF-8", current_charset(), from, to, '?');