-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add findfirst, findlast for searching char in strings #31664
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Ah, and maybe saying that it's equivalent to It would also make sense to support |
@nalimilan any more work on this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you feel like implementing findnext
and findprev
? It shouldn't be a lot of work and it would be more consistent.
@nalimilan is this alright now? |
Co-Authored-By: eulerkochy <[email protected]>
Co-Authored-By: eulerkochy <[email protected]>
@nalimilan all bases covered? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've added a commit to use AbstractChar
instead of Char
.
Bump |
I attempted to commit some changes to the branch but it doesn't seem to allow maintainers to make commits. The compat notes should say that the method is new, not the function—the function already existed, it's the methods that are new. |
Co-Authored-By: Stefan Karpinski <[email protected]>
Co-Authored-By: Stefan Karpinski <[email protected]>
Is it alright now @StefanKarpinski ? |
Addresses #31600