Lines Matching refs:pos
535 $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
539 return false !== $pos ? $offset + $pos : false;
648 $pos = self::mb_stripos($haystack, $needle, 0, $encoding);
650 return self::getSubpart($pos, $part, $haystack, $encoding);
657 $pos = strrpos($haystack, $needle);
660 $pos = \iconv_strrpos($haystack, $needle, $encoding);
663 return self::getSubpart($pos, $part, $haystack, $encoding);
669 $pos = self::mb_strripos($haystack, $needle, $encoding);
671 return self::getSubpart($pos, $part, $haystack, $encoding);
684 $pos = strpos($haystack, $needle);
685 if (false === $pos) {
689 return substr($haystack, 0, $pos);
692 return substr($haystack, $pos);
800 private static function getSubpart($pos, $part, $haystack, $encoding) argument
802 if (false === $pos) {
806 return self::mb_substr($haystack, 0, $pos, $encoding);
809 return self::mb_substr($haystack, $pos, null, $encoding);