function search()

in src/str/grapheme/introspect.php [41:50]


function search(string $haystack, string $needle, int $offset = 0)[rx_local]: ?int {
  $offset = _Private\validate_offset($offset, length($haystack));
  /* HH_FIXME[2049] __PHPStdLib */
  /* HH_FIXME[4107] __PHPStdLib */
  $position = \grapheme_strpos($haystack, $needle, $offset);
  if ($position === false) {
    return null;
  }
  return $position;
}