Skip to content

Remove duplicate string APIs #8195

New issue

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

Closed
wants to merge 2 commits into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Mar 13, 2022

The to lower/upper functions are wrappers around the zend_* versions.

The natural_compare ones are wrappers for strnatcmp_ex() which always return SUCCESS and return the result of the comparison via an out argument, something which seems rather pointless.

@Girgias Girgias force-pushed the std-str-duplicate-apis branch from d7947de to 623c4d0 Compare March 13, 2022 15:49
@nikic
Copy link
Member

nikic commented Mar 20, 2022

Dropping the string_natural_compare functions looks reasonable to me, but I think we might want to retain the tolower/toupper functions, as these were the historical APIs before the zend variants were introduced. (At least the upper variants are very new IIRC.)

@Girgias Girgias closed this in 71a110f Mar 24, 2022
@Girgias Girgias deleted the std-str-duplicate-apis branch March 24, 2022 00:01
Girgias added a commit that referenced this pull request Aug 14, 2024
…plementation (#15402)

This was overlooked, by my younger self, in GH-8195.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants