Skip to content
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

Deprecate #beginsWithEmpty:caseSensitive. Users should use beginsWith… #10016

Merged

Conversation

dionisiydk
Copy link
Contributor

It deprecates String method #beginsWithEmpty:caseSensitive. It was oddly named and it was inconsistent to a simple #beginsWith: analog in case of empty prefix.
Now users should use #beginsWith:caseSensitive and take care about empty prefix on their own side when needed.
The image users are adopted accordingly

…:caseSensitive which is consistent to simple #beginWith: method.
{ #category : #tests }
StringTest >> testBeginsWithEmptyCaseSensitive [

self deny: ('éèàôüößäóñíá' beginsWithEmpty: 'ß' caseSensitive: true).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found many other StringTests with strange encodings. Not sure what to do with them. But such cleaning required a separate issue

@dionisiydk dionisiydk closed this Sep 28, 2021
@dionisiydk dionisiydk reopened this Sep 28, 2021
@dionisiydk dionisiydk closed this Oct 2, 2021
@dionisiydk dionisiydk reopened this Oct 2, 2021
@MarcusDenker MarcusDenker merged commit bbc2767 into pharo-project:Pharo10 Oct 6, 2021
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