Lines Matching refs:needle
494 public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) argument
498 return strpos($haystack, $needle, $offset);
501 $needle = (string) $needle;
502 if ('' === $needle) {
512 return \iconv_strpos($haystack, $needle, $offset, $encoding);
515 public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) argument
519 return strrpos($haystack, $needle, $offset);
526 if (0 > $offset += self::mb_strlen($needle)) {
535 $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
536 ? \iconv_strrpos($haystack, $needle, $encoding)
638 public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) argument
641 $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
643 return self::mb_strpos($haystack, $needle, $offset, $encoding);
646 public static function mb_stristr($haystack, $needle, $part = false, $encoding = null) argument
648 $pos = self::mb_stripos($haystack, $needle, 0, $encoding);
653 public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) argument
657 $pos = strrpos($haystack, $needle);
659 $needle = self::mb_substr($needle, 0, 1, $encoding);
660 $pos = \iconv_strrpos($haystack, $needle, $encoding);
666 public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) argument
668 $needle = self::mb_substr($needle, 0, 1, $encoding);
669 $pos = self::mb_strripos($haystack, $needle, $encoding);
674 public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) argument
677 $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
679 return self::mb_strrpos($haystack, $needle, $offset, $encoding);
682 public static function mb_strstr($haystack, $needle, $part = false, $encoding = null) argument
684 $pos = strpos($haystack, $needle);
747 public static function mb_substr_count($haystack, $needle, $encoding = null) argument
749 return substr_count($haystack, $needle);