Remove StringBuilderCache usage from System.Text.RegularExpressions (#30474)
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)
* 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>
src/System.Private.CoreLib/shared/System/Text/ValueStringBuilder.cs

index 1e33bdb49b4d5259ef8d71275b1191e56e435fb2..04488374a050e7e8b9d70ba0fd09e83d5de929d9 100644 (file)
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
 
 namespace System.Text
 {
-    internal ref struct ValueStringBuilder
+    internal ref partial struct ValueStringBuilder
     {
         private char[] _arrayToReturnToPool;
         private Span<char> _chars;