-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
proposal: string: add HasAnyOfPrefixes, HasAnyOfSuffixes #66191
Comments
is this a common enough operation to be in the standard library? |
not very often |
I could imagine having this in the standard library if it were capable of matching all of the prefixes together in a single pass, but that sort of thing tends to require precomputing a data structure such as a state machine, and the standard library already has It might be interesting to extend that package to have a different frontend that accepts a set of static strings instead of a regexp pattern and compiles it in the same way as a |
Proposal Details
The text was updated successfully, but these errors were encountered: