Open just-ero opened 1 year ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
To my knowledge the native routines for doing linguistic searches require contiguous memory, and StringBuilder is actually a linked list of segments. If that's the case this could be prohibitively expensive. @tarekgh, do you know if ICU/NLS have APIs for searching non-contiguous text?
Tagging subscribers to this area: @dotnet/area-system-runtime See info in area-owners.md if you want to be subscribed.
Author: | just-ero |
---|---|
Assignees: | - |
Labels: | `api-suggestion`, `area-System.Runtime`, `untriaged` |
Milestone: | - |
do you know if ICU/NLS have APIs for searching non-contiguous text?
I don't think this is supported by ICU/NLS. Both require continuous memory.
Background and motivation
The
String.Replace
method contains one overload which receives aStringComparison
, and another overload which receives aCultureInfo
. Similar overloads should also exist forStringBuilder.Replace
, for convenience and consistency.API Proposal
API Usage
Alternative Designs
No response
Risks
No response