Lines Matching refs:tolen
108 const char *from, unsigned long *to, size_t tolen) {
119 TRACE(("idn__punycode_decode(from=\"%s\", tolen=%d)\n",
120 idn__debug_xstring(from, 50), (int)tolen));
124 r = idn_ucs4_utf8toucs4(from, to, tolen);
140 if (tolen < fidx) {
175 if (tolen-- <= 0) {
188 if (tolen <= 0) {
207 const unsigned long *from, char *to, size_t tolen) {
219 TRACE(("idn__punycode_encode(from=\"%s\", tolen=%d)\n",
220 idn__debug_ucs4xstring(from, 50), (int)tolen));
223 r = idn_ucs4_ucs4toutf8(from, to, tolen);
230 if (tolen < prefixlen) {
236 tolen -= prefixlen;
260 if (toidx >= tolen) {
274 if (toidx >= tolen) {
280 tolen -= toidx;
321 int sz = punycode_putwc(to, tolen, delta, bias);
327 tolen -= sz;
342 if (tolen <= 0) {