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
115 static idn_result_t copy_verbatim(const char *from, char *to,
186 idn_res_encodename(idn_resconf_t ctx, idn_action_t actions, const char *from,
198 assert(ctx != NULL && from != NULL && to != NULL);
200 TRACE(("idn_res_encodename(actions=%s, from=\"%s\", tolen=%d)\n",
202 idn__debug_xstring(from, 50), (int)tolen));
214 r = copy_verbatim(from, to, tolen);
234 * Convert `from' to UCS4.
264 r = idn_converter_convtoucs4(local_converter, from,
267 r = idn_ucs4_utf8toucs4(from, buffer, buffer_length);
452 idn_res_decodename(idn_resconf_t ctx, idn_action_t actions, const char *from,
464 assert(ctx != NULL && from != NULL && to != NULL);
466 TRACE(("idn_res_decodename(actions=%s, from=\"%s\", tolen=%d)\n",
468 idn__debug_xstring(from, 50), (int)tolen));
480 r = copy_verbatim(from, to, tolen);
500 * Convert `from' to UCS4.
519 TRACE(("res idndecode(name=\"%s\")\n", idn__debug_xstring(from, 50)));
533 r = idn_converter_convtoucs4(idn_converter, from,
536 r = idn_ucs4_utf8toucs4(from, buffer, buffer_length);
712 idn_res_decodename2(idn_resconf_t ctx, idn_action_t actions, const char *from,
724 assert(ctx != NULL && from != NULL && to != NULL);
726 TRACE(("idn_res_decodename2(actions=%s, from=\"%s\", tolen=%d, "
729 idn__debug_xstring(from, 50), (int)tolen,
735 r = copy_verbatim(from, to, tolen);
745 return idn_res_decodename(ctx, actions, from, to, tolen);
749 * Convert `from' to UCS4.
775 r = idn_converter_convtoucs4(aux_converter, from,
851 copy_verbatim(const char *from, char *to, size_t tolen) {
852 size_t fromlen = strlen(from);
856 (void)memcpy(to, from, fromlen + 1);
1043 const unsigned long *from;
1048 from = labellist_getname(label);
1049 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1051 idn__debug_ucs4xstring(from, 50)));
1068 r = idn_converter_convfromucs4(local_converter, from, to,
1097 const unsigned long *from;
1103 from = labellist_getname(label);
1104 from_length = idn_ucs4_strlen(from) + 1;
1106 idn__debug_ucs4xstring(from, 50)));
1123 r = idn_ucs4_ucs4toutf8(from, ascii_from, from_length);
1172 const unsigned long *from;
1178 from = labellist_getname(label);
1180 idn__debug_ucs4xstring(from, 50)));
1189 to_length = idn_ucs4_strlen(from) * 4 + 16; /* add mergin */
1200 r = idn_converter_convfromucs4(idn_converter, from, ascii_to,
1248 const unsigned long *from;
1255 from = labellist_getname(label);
1258 idn__debug_ucs4xstring(from, 50),
1267 if (tld == from)
1269 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1281 r = idn_mapselector_map2(local_mapper, from, tld, to,
1307 const unsigned long *from;
1313 from = labellist_getname(label);
1314 TRACE(("res map(label=\"%s\")\n", idn__debug_ucs4xstring(from, 50)));
1321 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1333 r = idn_mapper_map(mapper, from, to, to_length);
1358 const unsigned long *from;
1364 from = labellist_getname(label);
1366 idn__debug_ucs4xstring(from, 50)));
1373 to_length = idn_ucs4_strlen(from) + 1 + 15; /* 15 for margin */
1385 r = idn_normalizer_normalize(normalizer, from, to, to_length);
1548 const unsigned long *from;
1554 from = labellist_getname(label);
1556 idn__debug_ucs4xstring(from, 50)));
1558 buffer_length = idn_ucs4_strlen(from) * 4 + 16; /* 16 for margin */
1572 r = idn_converter_convfromucs4(idn_converter, from,
1575 r = idn_ucs4_ucs4toutf8(from, buffer, buffer_length);