Lines Matching refs:to
9 * By using this file, you agree to the terms and conditions set forth bellow.
28 * distribution the "Copyright Notice" refers to the following language:
31 * 4. The name of JPNIC may not be used to endorse or promote products
65 * signature, we have to choose one. In order to prevent the converted
81 * For this value not to be greater than 0xffffffff (since the calculation
108 const char *from, unsigned long *to, size_t tolen) {
109 unsigned long *to_org = to;
124 r = idn_ucs4_utf8toucs4(from, to, tolen);
145 to[uidx] = from[uidx];
180 to[i] = to[i - 1];
181 to[uidx] = c;
192 to[ucslen] = '\0';
197 TRACE(("idn__punycode_decode(): succcess (to=\"%s\")\n",
207 const unsigned long *from, char *to, size_t tolen) {
208 char *to_org = to;
223 r = idn_ucs4_ucs4toutf8(from, to, tolen);
234 memcpy(to, IDN_PUNYCODE_PREFIX, prefixlen);
235 to += prefixlen;
241 * If the input string is too long (actually too long to be sane),
242 * return failure in order to prevent possible overflow.
246 "the input string is too long to convert Punycode\n",
256 * First, pick up basic code points and copy them to 'to'.
264 to[toidx++] = from[uidx];
278 to[toidx++] = '-';
279 to += toidx;
294 * Find the smallest code point equal to or greater
313 * whose code point is 'cur_code'. Use 'limit' to avoid
321 int sz = punycode_putwc(to, tolen, delta, bias);
326 to += sz;
346 *to = '\0';
351 TRACE(("idn__punycode_encode(): succcess (to=\"%s\")\n",