Lines Matching refs:from

16  * license is obtained from Japan Network Information Center ("JPNIC"),
34 * derived from this Software without specific prior written approval of
127 const unsigned long *from,
137 const unsigned long *from,
141 void *privdata, const char *from,
154 const unsigned long *from,
159 const char *from,
176 const unsigned long *from,
181 const char *from,
422 idn_converter_convfromucs4(idn_converter_t ctx, const unsigned long *from,
426 assert(ctx != NULL && from != NULL && to != NULL);
428 TRACE(("idn_converter_convfromucs4(ctx=%s, from=\"%s\", tolen=%d)\n",
429 ctx->local_encoding_name, idn__debug_ucs4xstring(from, 50),
439 r = (*ctx->ops->convfromucs4)(ctx, ctx->private_data, from, to, tolen);
443 r = roundtrip_check(ctx, from, to);
461 idn_converter_convtoucs4(idn_converter_t ctx, const char *from,
465 assert(ctx != NULL && from != NULL && to != NULL);
467 TRACE(("idn_converter_convtoucs4(ctx=%s, from=\"%s\", tolen=%d)\n",
468 ctx->local_encoding_name, idn__debug_xstring(from, 50),
478 r = (*ctx->ops->convtoucs4)(ctx, ctx->private_data, from, to, tolen);
699 roundtrip_check(idn_converter_t ctx, const unsigned long *from, const char *to)
717 TRACE(("idn_converter_convert: round-trip checking (from=\"%s\")\n",
718 idn__debug_ucs4xstring(from, 50)));
721 fromlen = idn_ucs4_strlen(from) + 1;
738 if (memcmp(back, from, sizeof(*from) * fromlen) != 0)
780 const unsigned long *from, char *to, size_t tolen) {
781 assert(ctx != NULL && from != NULL && to != NULL);
783 return idn_ucs4_ucs4toutf8(from, to, tolen);
788 const char *from, unsigned long *to, size_t tolen) {
789 assert(ctx != NULL && from != NULL && to != NULL);
791 return idn_ucs4_utf8toucs4(from, to, tolen);
900 const unsigned long *from, char *to,
911 assert(ctx != NULL && from != NULL && to != NULL);
928 r = idn_ucs4_ucs4toutf8(from, utf8, utf8size);
1018 const char *from, unsigned long *to, size_t tolen) {
1029 assert(ctx != NULL && from != NULL && to != NULL);
1051 from_ptr = from;
1052 inleft = strlen(from);
1102 * Conversion to/from unicode escape string.
1111 const unsigned long *from, char *to,
1116 while (*from != '\0') {
1117 v = *from++;
1163 const char *from, unsigned long *to, size_t tolen)
1166 size_t fromlen = strlen(from);
1168 while (*from != '\0') {
1173 if (strncmp(from, "\\u{", 3) == 0 ||
1174 strncmp(from, "\\U{", 3) == 0) {
1179 v = strtoul(from + 3, &end, 16);
1180 ullen = end - (from + 3);
1183 from = end + 1;
1187 from++;
1191 int c = *(unsigned char *)from;
1216 memcpy(buf, from, width);
1223 from += width;