Lines Matching defs:from

14  * license is obtained from Japan Network Information Center ("JPNIC"),
32 * derived from this Software without specific prior written approval of
125 const unsigned long *from,
135 const unsigned long *from,
139 void *privdata, const char *from,
152 const unsigned long *from,
157 const char *from,
174 const unsigned long *from,
179 const char *from,
420 idn_converter_convfromucs4(idn_converter_t ctx, const unsigned long *from,
424 assert(ctx != NULL && from != NULL && to != NULL);
426 TRACE(("idn_converter_convfromucs4(ctx=%s, from=\"%s\", tolen=%d)\n",
427 ctx->local_encoding_name, idn__debug_ucs4xstring(from, 50),
437 r = (*ctx->ops->convfromucs4)(ctx, ctx->private_data, from, to, tolen);
441 r = roundtrip_check(ctx, from, to);
459 idn_converter_convtoucs4(idn_converter_t ctx, const char *from,
463 assert(ctx != NULL && from != NULL && to != NULL);
465 TRACE(("idn_converter_convtoucs4(ctx=%s, from=\"%s\", tolen=%d)\n",
466 ctx->local_encoding_name, idn__debug_xstring(from, 50),
476 r = (*ctx->ops->convtoucs4)(ctx, ctx->private_data, from, to, tolen);
697 roundtrip_check(idn_converter_t ctx, const unsigned long *from, const char *to)
715 TRACE(("idn_converter_convert: round-trip checking (from=\"%s\")\n",
716 idn__debug_ucs4xstring(from, 50)));
719 fromlen = idn_ucs4_strlen(from) + 1;
736 if (memcmp(back, from, sizeof(*from) * fromlen) != 0)
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);
926 r = idn_ucs4_ucs4toutf8(from, utf8, utf8size);
1016 const char *from, unsigned long *to, size_t tolen) {
1027 assert(ctx != NULL && from != NULL && to != NULL);
1049 from_ptr = from;
1050 inleft = strlen(from);
1100 * Conversion to/from unicode escape string.
1109 const unsigned long *from, char *to,
1114 while (*from != '\0') {
1115 v = *from++;
1161 const char *from, unsigned long *to, size_t tolen)
1164 size_t fromlen = strlen(from);
1166 while (*from != '\0') {
1171 if (strncmp(from, "\\u{", 3) == 0 ||
1172 strncmp(from, "\\U{", 3) == 0) {
1177 v = strtoul(from + 3, &end, 16);
1178 ullen = end - (from + 3);
1181 from = end + 1;
1185 from++;
1189 int c = *(unsigned char *)from;
1214 memcpy(buf, from, width);
1221 from += width;