Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 5 of 5) sorted by relevance

/dokuwiki/inc/
Dcompatibility.php95 function str_starts_with(?string $haystack, ?string $needle) argument
97 return 0 === strncmp($haystack, $needle, \strlen($needle));
106 function str_contains(?string $haystack, ?string $needle) argument
108 return '' === $needle || false !== strpos($haystack, (string) $needle);
117 function str_ends_with(?string $haystack, ?string $needle) argument
119 if ('' === $needle || $needle === $haystack) {
127 $needleLength = \strlen($needle);
129 …return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLen…
DIp.php28 * @param string $needle The IP to test, either IPv4 in dotted decimal
39 public static function ipInRange(string $needle, string $haystack): bool argument
60 $needle = Ip::ipToNumber($needle);
62 return ($needle['upper'] & $maskUpper) === ($networkIp['upper'] & $maskUpper) &&
63 ($needle['lower'] & $maskLower) === ($networkIp['lower'] & $maskLower);
Dutf8.php208 function utf8_strpos($haystack, $needle, $offset = 0) argument
211 return PhpString::strpos($haystack, $needle, $offset);
/dokuwiki/inc/Utf8/
DPhpString.php347 * @param string $needle
354 public static function strpos($haystack, $needle, $offset = 0) argument
360 $pos = strpos($haystack, $needle, $offset + $comp);
/dokuwiki/_test/core/
DphpQuery-onefile.php4343 function mb_strpos($haystack, $needle, $offset=0) argument
4345 return strpos($haystack, $needle, $offset);
4355 function mb_stripos($haystack, $needle, $offset=0) argument
4357 return stripos($haystack, $needle, $offset);
4381 function mb_substr_count($haystack, $needle) argument
4383 return substr_count($haystack, $needle);