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
68 * name from beginning with a hyphen, we should choose a prefix rather
110 const char *from, unsigned long *to, size_t tolen) {
121 TRACE(("idn__punycode_decode(from=\"%s\", tolen=%d)\n",
122 idn__debug_xstring(from, 50), (int)tolen));
124 if (!idn__util_asciihaveaceprefix(from, IDN_PUNYCODE_PREFIX)) {
125 if (*from == '\0') {
126 r = idn_ucs4_utf8toucs4(from, to, tolen);
132 from += prefixlen;
133 fromlen = strlen(from);
141 if (from[fidx - 1] == '-') {
147 to[uidx] = from[uidx];
163 len = punycode_getwc(from + fidx, fromlen - fidx, bias, &delta);
209 const unsigned long *from, char *to, size_t tolen) {
221 TRACE(("idn__punycode_encode(from=\"%s\", tolen=%d)\n",
222 idn__debug_ucs4xstring(from, 50), (int)tolen));
224 if (*from == '\0') {
225 r = idn_ucs4_ucs4toutf8(from, to, tolen);
227 } else if (idn__util_ucs4haveaceprefix(from, IDN_PUNYCODE_PREFIX)) {
240 fromlen = idn_ucs4_strlen(from);
249 idn__debug_ucs4xstring(from, 50)));
261 if (from[uidx] < 0x80) {
266 to[toidx++] = from[uidx];
302 if (from[uidx] >= cur_code && from[uidx] < next_code) {
303 next_code = from[uidx];
319 if (from[uidx] < cur_code) {
322 } else if (from[uidx] == cur_code) {