Lines Matching refs:decoded

267     function encode($decoded, $one_time_encoding = false)
273 $decoded = $this->_utf8_to_ucs4($decoded);
276 $decoded = $this->_ucs4_string_to_ucs4($decoded);
285 if (empty($decoded)) return '';
291 foreach ($decoded as $k => $v) {
297 $decoded[$k] = 0x2E;
314 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($k)-$last_begin)));
318 $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($k)-$last_begin)));
320 $output .= chr($decoded[$k]);
327 $inp_len = sizeof($decoded);
329 $encoded = $this->_encode(array_slice($decoded, $last_begin, (($inp_len)-$last_begin)));
333 $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($inp_len)-$last_begin)));
338 if ($output = $this->_encode($decoded)) {
342 return $this->_ucs4_to_utf8($decoded);
377 $decoded[] = ord($encoded[$k]);
380 $decoded = array();
382 $deco_len = count($decoded);
405 // Make room for the decoded char
407 $decoded[$i] = $decoded[($i - 1)];
410 $decoded[$idx++] = $char;
412 return $this->_ucs4_to_utf8($decoded);
419 function _encode($decoded)
424 $check_deco = array_slice($decoded, 0, $extract);
432 foreach ($decoded as $k => $v) {
444 $decoded = $this->_nameprep($decoded);
445 if (!$decoded || !is_array($decoded)) return false; // NAMEPREP failed
447 $deco_len = count($decoded);
455 $test = $decoded[$i];
459 $encoded .= chr($decoded[$i]);
480 if ($decoded[$i] >= $cur_code && $decoded[$i] <= $next_code) {
481 $next_code = $decoded[$i];
490 if ($decoded[$i] < $cur_code) {
492 } elseif ($decoded[$i] == $cur_code) {