We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, string functions in ext/standard and ext/mbstring can accept an empty $needle, so we should add support for this in ext/intl as well.
$needle
The relevant code that needs to be changed is https://github.com/unicode-org/icu/blob/f744742e036441cbfd54b535e722dc3801ff0f63/icu4c/source/i18n/usearch.cpp#L2675. Discussion: php/php-src#5972 (comment)
The text was updated successfully, but these errors were encountered:
I made a patch to allow empty needles by explicitly checking in grapheme_strpos_utf16.
See php/php-src@master...chschneider:grapheme_empty_needles for the diff, should I submit a pull request or are there major issues with this approach?
Sorry, something went wrong.
@chschneider Looks reasonable
Allow empty needle in grapheme_str*pos, grapheme_str*str
7af24ea
For consistency with str* and mb_str* functions. Closes GH-6245. Closes php/php-tasks#20.
No branches or pull requests
Currently, string functions in ext/standard and ext/mbstring can accept an empty
$needle
, so we should add support for this in ext/intl as well.The relevant code that needs to be changed is https://github.com/unicode-org/icu/blob/f744742e036441cbfd54b535e722dc3801ff0f63/icu4c/source/i18n/usearch.cpp#L2675. Discussion: php/php-src#5972 (comment)
The text was updated successfully, but these errors were encountered: