in intl/intl.php [5162:5329]
function grapheme_strpos(string $haystack, string $needle, int $offset = 0, #[ElementAvailable(from: '8.5')] string $locale = ""): int|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Find position (in grapheme units) of first occurrence of a case-insensitive string
* @link https://php.net/manual/en/function.grapheme-stripos.php
* @param string $haystack <p>
* The string to look in. Must be valid UTF-8.
* </p>
* @param string $needle <p>
* The string to look for. Must be valid UTF-8.
* </p>
* @param int $offset [optional] <p>
* The optional $offset parameter allows you to specify where in haystack to
* start searching as an offset in grapheme units (not bytes or characters).
* The position returned is still relative to the beginning of haystack
* regardless of the value of $offset.
* </p>
* @return int|false the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE.
*/
#[Pure]
function grapheme_stripos(string $haystack, string $needle, int $offset = 0, #[ElementAvailable(from: '8.5')] string $locale = ""): int|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Find position (in grapheme units) of last occurrence of a string
* @link https://php.net/manual/en/function.grapheme-strrpos.php
* @param string $haystack <p>
* The string to look in. Must be valid UTF-8.
* </p>
* @param string $needle <p>
* The string to look for. Must be valid UTF-8.
* </p>
* @param int $offset [optional] <p>
* The optional $offset parameter allows you to specify where in $haystack to
* start searching as an offset in grapheme units (not bytes or characters).
* The position returned is still relative to the beginning of haystack
* regardless of the value of $offset.
* </p>
* @return int|false the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE.
*/
#[Pure]
function grapheme_strrpos(string $haystack, string $needle, int $offset = 0, #[ElementAvailable(from: '8.5')] string $locale = ""): int|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Find position (in grapheme units) of last occurrence of a case-insensitive string
* @link https://php.net/manual/en/function.grapheme-strripos.php
* @param string $haystack <p>
* The string to look in. Must be valid UTF-8.
* </p>
* @param string $needle <p>
* The string to look for. Must be valid UTF-8.
* </p>
* @param int $offset [optional] <p>
* The optional $offset parameter allows you to specify where in $haystack to
* start searching as an offset in grapheme units (not bytes or characters).
* The position returned is still relative to the beginning of haystack
* regardless of the value of $offset.
* </p>
* @return int|false the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE.
*/
#[Pure]
function grapheme_strripos(string $haystack, string $needle, int $offset = 0, #[ElementAvailable(from: '8.5')] string $locale = ""): int|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Return part of a string
* @link https://php.net/manual/en/function.grapheme-substr.php
* @param string $string <p>
* The input string. Must be valid UTF-8.
* </p>
* @param int $offset <p>
* Start position in default grapheme units.
* If $start is non-negative, the returned string will start at the
* $start'th position in $string, counting from zero. If $start is negative,
* the returned string will start at the $start'th grapheme unit from the
* end of string.
* </p>
* @param int|null $length [optional] <p>
* Length in grapheme units.
* If $length is given and is positive, the string returned will contain
* at most $length grapheme units beginning from $start (depending on the
* length of string). If $length is given and is negative, then
* that many grapheme units will be omitted from the end of string (after the
* start position has been calculated when a start is negative). If $start
* denotes a position beyond this truncation, <b>FALSE</b> will be returned.
* </p>
* @return string|false <p>the extracted part of $string,<br />
* or <strong>FALSE</strong> if $length is negative and $start denotes a position beyond truncation $length,<br />
* or also <strong>FALSE</strong> if $start denotes a position beyond $string length</p>
*/
#[Pure]
function grapheme_substr(string $string, int $offset, ?int $length = null, #[ElementAvailable(from: '8.5')] string $locale = ""): string|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Returns part of haystack string from the first occurrence of needle to the end of haystack.
* @link https://php.net/manual/en/function.grapheme-strstr.php
* @param string $haystack <p>
* The input string. Must be valid UTF-8.
* </p>
* @param string $needle <p>
* The string to look for. Must be valid UTF-8.
* </p>
* @param bool $beforeNeedle [optional] <p>
* If <b>TRUE</b>, grapheme_strstr() returns the part of the
* haystack before the first occurrence of the needle (excluding the needle).
* </p>
* @return string|false the portion of string, or FALSE if needle is not found.
*/
#[Pure]
function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false, #[ElementAvailable(from: '8.5')] string $locale = ""): string|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack.
* @link https://php.net/manual/en/function.grapheme-stristr.php
* @param string $haystack <p>
* The input string. Must be valid UTF-8.
* </p>
* @param string $needle <p>
* The string to look for. Must be valid UTF-8.
* </p>
* @param bool $beforeNeedle [optional] <p>
* If <b>TRUE</b>, grapheme_strstr() returns the part of the
* haystack before the first occurrence of the needle (excluding needle).
* </p>
* @return string|false the portion of $haystack, or FALSE if $needle is not found.
*/
#[Pure]
function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false, #[ElementAvailable(from: '8.5')] string $locale = ""): string|false {}
/**
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)<br/>
* Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8.
* @link https://php.net/manual/en/function.grapheme-extract.php
* @param string $haystack <p>
* String to search.
* </p>
* @param int $size <p>
* Maximum number items - based on the $extract_type - to return.
* </p>
* @param int $type <p>
* Defines the type of units referred to by the $size parameter:
* </p>
* <p>
* GRAPHEME_EXTR_COUNT (default) - $size is the number of default
* grapheme clusters to extract.
* GRAPHEME_EXTR_MAXBYTES - $size is the maximum number of bytes
* returned.
* GRAPHEME_EXTR_MAXCHARS - $size is the maximum number of UTF-8
* characters returned.
* </p>
* @param int $offset [optional] <p>
* Starting position in $haystack in bytes - if given, it must be zero or a
* positive value that is less than or equal to the length of $haystack in
* bytes. If $start does not point to the first byte of a UTF-8
* character, the start position is moved to the next character boundary.
* </p>
* @param int &$next [optional] <p>
* Reference to a value that will be set to the next starting position.
* When the call returns, this may point to the first byte position past the end of the string.
* </p>
* @return string|false A string starting at offset $start and ending on a default grapheme cluster
* boundary that conforms to the $size and $extract_type specified.
*/
function grapheme_extract(string $haystack, int $size, int $type = 0, int $offset = 0, &$next = null): string|false {}