Lines Matching defs:string

64      * @var string
71 * @var string
78 * @var string
85 * @var string
92 * @var string
99 * @var string
106 * @var string
137 * Return the entire IRI when you try and read the object as a string
139 * @return string
149 * @param string $name Property name
171 * @param string $name Property name
214 * @param string $name Property name
225 * @param string $name Property name
235 * Create a new IRI object, from a specified string
237 * @param string $iri
259 * @param IRI|string $base (Absolute) Base IRI
260 * @param IRI|string $relative Relative IRI
324 * @param string $iri
356 * @param string $input
357 * @return string
402 * @param string $string Input string
403 * @param string $extra_chars Valid characters not in iunreserved or
406 * @return string
408 protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false)
411 $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', [$this, 'remove_iunreserved_percent_encoded'], $string);
414 $string = preg_replace('/%(?![A-Fa-f0-9]{2})/', '%25', $string);
422 $strlen = strlen($string);
423 while (($position += strspn($string, $extra_chars, $position)) < $strlen) {
424 $value = ord($string[$position]);
462 $value = ord($string[$position]);
512 $string = substr_replace($string, sprintf('%%%02X', ord($string[$j])), $j, 1);
520 return $string;
530 * @return string Replacement
535 // and ignore the first member of the returned array (an empty string).
538 // Initialize the new string (this is what will be returned) and that
541 $string = '';
631 $string .= '%' . strtoupper($bytes[$j]);
635 $string .= chr(hexdec($bytes[$j]));
645 $string .= '%' . strtoupper($bytes[$j]);
649 return $string;
712 * @param string $iri
743 $parsed = $this->parse_iri((string) $iri);
772 * @param string $scheme
792 * @param string $authority
855 * @param string $iuserinfo
874 * @param string $ihost
918 * @param string $port
939 * @param string $ipath
953 $ipath = (string) $ipath;
972 * @param string $iquery
989 * @param string $ifragment
1006 * @return string
1008 public function to_uri($string)
1016 $strlen = strlen($string);
1017 while (($position += strcspn($string, $non_ascii, $position)) < $strlen) {
1018 $string = substr_replace($string, sprintf('%%%02X', ord($string[$position])), $position, 1);
1023 return $string;
1029 * @return string
1062 * @return string
1072 * @return string
1096 * @return string