Lines Matching defs:string
63 * @var string
70 * @var string
77 * @var string
84 * @var string
91 * @var string
98 * @var string
105 * @var string
136 * Return the entire IRI when you try and read the object as a string
138 * @return string
148 * @param string $name Property name
170 * @param string $name Property name
213 * @param string $name Property name
224 * @param string $name Property name
234 * Create a new IRI object, from a specified string
236 * @param string $iri
258 * @param IRI|string $base (Absolute) Base IRI
259 * @param IRI|string $relative Relative IRI
323 * @param string $iri
355 * @param string $input
356 * @return string
401 * @param string $string Input string
402 * @param string $extra_chars Valid characters not in iunreserved or
405 * @return string
407 protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false)
410 $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', [$this, 'remove_iunreserved_percent_encoded'], $string);
413 $string = preg_replace('/%(?![A-Fa-f0-9]{2})/', '%25', $string);
421 $strlen = strlen($string);
422 while (($position += strspn($string, $extra_chars, $position)) < $strlen) {
423 $value = ord($string[$position]);
461 $value = ord($string[$position]);
511 $string = substr_replace($string, sprintf('%%%02X', ord($string[$j])), $j, 1);
519 return $string;
529 * @return string Replacement
534 // and ignore the first member of the returned array (an empty string).
537 // Initialize the new string (this is what will be returned) and that
540 $string = '';
630 $string .= '%' . strtoupper($bytes[$j]);
634 $string .= chr(hexdec($bytes[$j]));
644 $string .= '%' . strtoupper($bytes[$j]);
648 return $string;
711 * @param string $iri
742 $parsed = $this->parse_iri((string) $iri);
771 * @param string $scheme
791 * @param string $authority
854 * @param string $iuserinfo
873 * @param string $ihost
917 * @param string $port
938 * @param string $ipath
952 $ipath = (string) $ipath;
971 * @param string $iquery
988 * @param string $ifragment
1005 * @return string
1007 public function to_uri($string)
1015 $strlen = strlen($string);
1016 while (($position += strcspn($string, $non_ascii, $position)) < $strlen) {
1017 $string = substr_replace($string, sprintf('%%%02X', ord($string[$position])), $position, 1);
1022 return $string;
1028 * @return string
1061 * @return string
1071 * @return string
1095 * @return string