• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /dokuwiki/vendor/simplepie/simplepie/idn/

Lines Matching defs:input

43  * Unicode input might be given as either UTF-8 string, UCS-4 string or UCS-4
47 * ACE input and output is always expected to be ASCII.
89 var $_api_encoding = 'utf8'; // Default input charset is UTF-8
111 * [encoding - Use either UTF-8, UCS4 as array or UCS4 as string as input ('utf8' for UTF-8,
118 * by silently ignoring errors and returning the original input instead
165 function decode($input, $one_time_encoding = false)
180 $input = trim($input);
182 // Negotiate input and try to determine, whether it is a plain string,
184 if (strpos($input, '@')) { // Maybe it is an email address
190 list ($email_pref, $input) = explode('@', $input, 2);
191 $arr = explode('.', $input);
198 $input = join('.', $arr);
207 $return = $email_pref . '@' . $input;
208 } elseif (preg_match('![:\./]!', $input)) { // Or a complete domain name (with or without paths / parameters)
214 $parsed = parse_url($input);
231 $arr = explode('.', $input);
239 $return = $this->_decode($input);
240 if (!$return) $return = $input;
263 * [@param string Desired input encoding, see {@link set_parameter}]
269 // Forcing conversion of input to UCS4 array
280 $this->_error('Unsupported input format: '.($one_time_encoding ? $one_time_encoding : $this->_api_encoding));
284 // No input, no output, what else did you expect?
478 // remember the last ouccrence of it in the input
488 // Scan input again and encode all characters whose code point is $cur_code
561 function _nameprep($input)
567 // Walking through the input array, performing the required steps on each of
568 // the input chars and putting the result into the output array
570 foreach ($input as $v) {
574 // Try to find prohibited input
576 $this->_error('NAMEPREP: Prohibited input U+'.sprintf('%08X', $v));
581 $this->_error('NAMEPREP: Prohibited input U+'.sprintf('%08X', $v));
665 function _hangul_compose($input)
667 $inp_len = count($input);
670 $last = (int) $input[0];
671 $result[] = $last; // copy first char from input to output
674 $char = (int) $input[$i];
718 function _apply_cannonical_ordering($input)
721 $size = count($input);
724 $last = $this->_get_combining_class(intval($input[0]));
726 $next = $this->_get_combining_class(intval($input[$i+1]));
730 if ($this->_get_combining_class(intval($input[$j-1])) <= $next) break;
731 $t = intval($input[$j]);
732 $input[$j] = intval($input[$j-1]);
733 $input[$j-1] = $t;
742 return $input;
751 function _combine($input)
753 $inp_len = count($input);
755 if ($np_target[0] != $input[0]) continue;
758 foreach ($input as $k2 => $v2) {
788 function _utf8_to_ucs4($input)
792 $inp_len = strlen($input);
796 $v = ord($input[$k]); // Extract byte from input string
802 $this->_error('Conversion from UTF-8 to UCS-4 failed: malformed input at byte '.$k);
849 $this->_error('Conversion from UTF-8 to UCS-4 failed: malformed input at byte '.$k);
865 function _ucs4_to_utf8($input)
869 foreach ($input as $v) {
890 $this->_error('Conversion from UCS-4 to UTF-8 failed: malformed input at byte '.$k);
902 function _ucs4_to_ucs4_string($input)
907 foreach ($input as $v) {
918 function _ucs4_string_to_ucs4($input)
921 $inp_len = strlen($input);
927 // Empty input - return empty output
930 // Increment output position every 4 input bytes
935 $output[$out_len] += ord($input[$i]) << (8 * (3 - ($i % 4) ) );
949 * [encoding - Use either UTF-8, UCS4 as array or UCS4 as string as input ('utf8' for UTF-8,
956 * by silently ignoring errors and returning the original input instead