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
113 static idn_result_t copy_verbatim(const char *from, char *to,
184 idn_res_encodename(idn_resconf_t ctx, idn_action_t actions, const char *from,
196 assert(ctx != NULL && from != NULL && to != NULL);
198 TRACE(("idn_res_encodename(actions=%s, from=\"%s\", tolen=%d)\n",
200 idn__debug_xstring(from, 50), (int)tolen));
212 r = copy_verbatim(from, to, tolen);
232 * Convert `from' to UCS4.
262 r = idn_converter_convtoucs4(local_converter, from,
265 r = idn_ucs4_utf8toucs4(from, buffer, buffer_length);
450 idn_res_decodename(idn_resconf_t ctx, idn_action_t actions, const char *from,
462 assert(ctx != NULL && from != NULL && to != NULL);
464 TRACE(("idn_res_decodename(actions=%s, from=\"%s\", tolen=%d)\n",
466 idn__debug_xstring(from, 50), (int)tolen));
478 r = copy_verbatim(from, to, tolen);
498 * Convert `from' to UCS4.
517 TRACE(("res idndecode(name=\"%s\")\n", idn__debug_xstring(from, 50)));
531 r = idn_converter_convtoucs4(idn_converter, from,
534 r = idn_ucs4_utf8toucs4(from, buffer, buffer_length);
710 idn_res_decodename2(idn_resconf_t ctx, idn_action_t actions, const char *from,
722 assert(ctx != NULL && from != NULL && to != NULL);
724 TRACE(("idn_res_decodename2(actions=%s, from=\"%s\", tolen=%d, "
727 idn__debug_xstring(from, 50), (int)tolen,
733 r = copy_verbatim(from, to, tolen);
743 return idn_res_decodename(ctx, actions, from, to, tolen);
747 * Convert `from' to UCS4.
773 r = idn_converter_convtoucs4(aux_converter, from,
849 copy_verbatim(const char *from, char *to, size_t tolen) {
850 size_t fromlen = strlen(from);
854 (void)memcpy(to, from, fromlen + 1);
1041 const unsigned long *from;
1046 from = labellist_getname(label);
1047 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1049 idn__debug_ucs4xstring(from, 50)));
1066 r = idn_converter_convfromucs4(local_converter, from, to,
1095 const unsigned long *from;
1101 from = labellist_getname(label);
1102 from_length = idn_ucs4_strlen(from) + 1;
1104 idn__debug_ucs4xstring(from, 50)));
1121 r = idn_ucs4_ucs4toutf8(from, ascii_from, from_length);
1170 const unsigned long *from;
1176 from = labellist_getname(label);
1178 idn__debug_ucs4xstring(from, 50)));
1187 to_length = idn_ucs4_strlen(from) * 4 + 16; /* add mergin */
1198 r = idn_converter_convfromucs4(idn_converter, from, ascii_to,
1246 const unsigned long *from;
1253 from = labellist_getname(label);
1256 idn__debug_ucs4xstring(from, 50),
1265 if (tld == from)
1267 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1279 r = idn_mapselector_map2(local_mapper, from, tld, to,
1305 const unsigned long *from;
1311 from = labellist_getname(label);
1312 TRACE(("res map(label=\"%s\")\n", idn__debug_ucs4xstring(from, 50)));
1319 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1331 r = idn_mapper_map(mapper, from, to, to_length);
1356 const unsigned long *from;
1362 from = labellist_getname(label);
1364 idn__debug_ucs4xstring(from, 50)));
1371 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1383 r = idn_normalizer_normalize(normalizer, from, to, to_length);
1546 const unsigned long *from;
1552 from = labellist_getname(label);
1554 idn__debug_ucs4xstring(from, 50)));
1556 buffer_length = idn_ucs4_strlen(from) * 4 + 16; /* 16 for margin */
1570 r = idn_converter_convfromucs4(idn_converter, from,
1573 r = idn_ucs4_ucs4toutf8(from, buffer, buffer_length);