Lines Matching defs:to
9 * By using this file, you agree to the terms and conditions set forth bellow.
28 * distribution the "Copyright Notice" refers to the following language:
31 * 4. The name of JPNIC may not be used to endorse or promote products
126 const char *to);
136 char *to, size_t tolen);
140 unsigned long *to, size_t tolen);
153 char *to, size_t tolen);
158 unsigned long *to, size_t tolen);
175 char *to, size_t tolen);
180 unsigned long *to,
421 char *to, size_t tolen) {
424 assert(ctx != NULL && from != NULL && to != NULL);
437 r = (*ctx->ops->convfromucs4)(ctx, ctx->private_data, from, to, tolen);
441 r = roundtrip_check(ctx, from, to);
449 TRACE(("idn_converter_convfromucs4(): success (to=\"%s\")\n",
450 idn__debug_xstring(to, 50)));
460 unsigned long *to, size_t tolen) {
463 assert(ctx != NULL && from != NULL && to != NULL);
476 r = (*ctx->ops->convtoucs4)(ctx, ctx->private_data, from, to, tolen);
479 TRACE(("idn_converter_convtoucs4(): success (to=\"%s\")\n",
480 idn__debug_ucs4xstring(to, 50)));
697 roundtrip_check(idn_converter_t ctx, const unsigned long *from, const char *to)
703 * do not have mapping to the output codeset.
706 * One way to check this case is to perform round-trip
733 r = idn_converter_convtoucs4(ctx, to, back, backlen);
778 const unsigned long *from, char *to, size_t tolen) {
779 assert(ctx != NULL && from != NULL && to != NULL);
781 return idn_ucs4_ucs4toutf8(from, to, tolen);
786 const char *from, unsigned long *to, size_t tolen) {
787 assert(ctx != NULL && from != NULL && to != NULL);
789 return idn_ucs4_utf8toucs4(from, to, tolen);
898 const unsigned long *from, char *to,
909 assert(ctx != NULL && from != NULL && to != NULL);
947 * The following code should work according to the SUSv2 spec,
962 sz = iconv(ictx, (const char **)&inbuf, &inleft, &to, &outleft);
989 sz = iconv(ictx, (const char **)NULL, &inleft, &to, &outleft);
1005 *to = '\0';
1016 const char *from, unsigned long *to, size_t tolen) {
1027 assert(ctx != NULL && from != NULL && to != NULL);
1089 r = idn_ucs4_utf8toucs4(utf8, to, tolen);
1100 * Conversion to/from unicode escape string.
1103 * where XXXXX denotes any hexadecimal string up to FFFFFFFF.
1109 const unsigned long *from, char *to,
1122 *to++ = v;
1134 (void)memcpy(to, tmp, len);
1135 to += len;
1147 *to = '\0';
1161 const char *from, unsigned long *to, size_t tolen)
1180 *to = v;
1184 *to = '\\';
1216 r = idn_ucs4_utf8toucs4(buf, to, tolen);
1224 to++;
1232 *to = '\0';