Rename string-slicing extension methods (dotnet/corefx#27328)
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>
Wed, 21 Feb 2018 19:48:51 +0000 (11:48 -0800)
committerJan Kotas <jkotas@microsoft.com>
Fri, 23 Feb 2018 03:56:34 +0000 (19:56 -0800)
* Rename string-slicing extension methods

As part of

https://github.com/dotnet/corefx/issues/26894

the api folks have approved renaming AsROSpan and AsROMemory
on string instances to AsSpan and AsMemory (as the "readonly"
is obvious given the read-only nature of the input.)

This puts the renaming in effect. Basically a big search-replace
commit.

* Fix OpenSSL build break

* I see this is going to be a treadmill

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/Text/ValueStringBuilder.cs

index e077a34..05cd401 100644 (file)
@@ -106,7 +106,7 @@ namespace System.Text
                 Grow(s.Length);
             }
 
-            s.AsReadOnlySpan().CopyTo(_chars.Slice(pos));
+            s.AsSpan().CopyTo(_chars.Slice(pos));
             _pos += s.Length;
         }