Lines Matching refs:haystack

494     public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)  argument
498 return strpos($haystack, $needle, $offset);
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);
527 $haystack = self::mb_substr($haystack, 0, $offset, $encoding);
531 $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
536 ? \iconv_strrpos($haystack, $needle, $encoding)
537 : self::mb_strlen($haystack, $encoding);
638 public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) argument
640 $haystack = self::mb_convert_case($haystack, 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);
650 return self::getSubpart($pos, $part, $haystack, $encoding);
653 public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) argument
657 $pos = strrpos($haystack, $needle);
660 $pos = \iconv_strrpos($haystack, $needle, $encoding);
663 return self::getSubpart($pos, $part, $haystack, $encoding);
666 public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) argument
669 $pos = self::mb_strripos($haystack, $needle, $encoding);
671 return self::getSubpart($pos, $part, $haystack, $encoding);
674 public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) argument
676 $haystack = self::mb_convert_case($haystack, 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);
689 return substr($haystack, 0, $pos);
692 return substr($haystack, $pos);
747 public static function mb_substr_count($haystack, $needle, $encoding = null) argument
749 return substr_count($haystack, $needle);
800 private static function getSubpart($pos, $part, $haystack, $encoding) argument
806 return self::mb_substr($haystack, 0, $pos, $encoding);
809 return self::mb_substr($haystack, $pos, null, $encoding);