swiftlang / swift-experimental-string-processing

An early experimental general-purpose pattern matching engine for Swift.
Apache License 2.0
278 stars 47 forks source link

Add [Sub]String specializations for `contains` and other search algorithms #687

Open milseman opened 1 year ago

milseman commented 1 year ago

Right now, contains() calls into the generic 2-way searcher which does Character loading and comparison, instead of doing the fast thing. We should specialize for String types.