Lines Matching refs:encoded
31 * to be translated between their original (localized) form and their encoded form
313 $encoded = '';
314 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($k)-$last_begin)));
315 if ($encoded) {
316 $output .= $encoded;
328 $encoded = '';
329 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($inp_len)-$last_begin)));
330 if ($encoded) {
331 $output .= $encoded;
360 function _decode($encoded)
363 if (!preg_match('!^'.preg_quote($this->_punycode_prefix, '!').'!', $encoded)) {
367 $encode_test = preg_replace('!^'.preg_quote($this->_punycode_prefix, '!').'!', '', $encoded);
370 $this->_error('The given encoded string was empty');
374 $delim_pos = strrpos($encoded, '-');
377 $decoded[] = ord($encoded[$k]);
383 $enco_len = strlen($encoded);
393 $digit = $this->_decode_digit($encoded[$enco_idx++]);
452 $encoded = '';
459 $encoded .= chr($decoded[$i]);
463 if ($codecount == $deco_len) return $encoded; // All codepoints were basic ones
466 $encoded = $this->_punycode_prefix.$encoded;
469 if ($codecount) $encoded .= '-';
497 $encoded .= $this->_encode_digit(intval($t + (($q - $t) % ($this->_base - $t)))); //v0.4.5 Changed from ceil() to intval()
500 $encoded .= $this->_encode_digit($q);
510 return $encoded;
772 * This converts an UTF-8 encoded string to its UCS-4 representation