Remove StringBuilderCache usage from System.Text.RegularExpressions (dotnet/coreclr...
authorViktor Hofer <viktor.hofer@microsoft.com>
Tue, 19 Jun 2018 21:34:37 +0000 (23:34 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 20 Jun 2018 00:04:30 +0000 (17:04 -0700)
commit8cc40d7404d4dae93fcfa5657d7915bea529bc11
treebec5cb59a87b9b0e883f8d175e4a292abdb0340f
parent5941b642195f8767ac9e00e4cdb7685b2b81f917
Remove StringBuilderCache usage from System.Text.RegularExpressions (dotnet/coreclr#30474)

* Remove StringBuilderCache usage

* fixed buffer size, manual reverse copying & local textinfo

* Fast path for not to encode string

* avoid one span slice

* code formatting & bounds check opt

* Avoid string allocation in char class

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/d429e0291cefdba83248b3d158926df05a76528e
src/libraries/System.Private.CoreLib/src/System/Text/ValueStringBuilder.cs