System.Memory source cleanup and fix byteOffset check in tests (dotnet/corefx#26598)
authorAhson Khan <ahkha@microsoft.com>
Sat, 3 Feb 2018 02:20:16 +0000 (18:20 -0800)
committerGitHub <noreply@github.com>
Sat, 3 Feb 2018 02:20:16 +0000 (18:20 -0800)
commit7432ce37c9874cd6c5b955a13ffa3d623f230eb5
tree0e84f8b0e76e147ff03920421bbc14e69f1a8fd8
parentb243be17954f239c7fe51b3acb3766be40ea3a88
System.Memory source cleanup and fix byteOffset check in tests (dotnet/corefx#26598)

* String-like Span extension methods - Remove / PadLeft and Right

* Get rid off Remove, update PadLeft/Right and address feedback.

* Update PadLeft and PadRight tests since we removed totalWidth

* Getting rid of PadLeft and PadRight APIs. Add later if needed.

Commit migrated from https://github.com/dotnet/corefx/commit/1d19c3a3448cdc67322f3331297f22665621c90c
src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/FormattingHelpers.cs
src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/Utf8Formatter.Integer.Signed.D.cs
src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/Utf8Formatter.Integer.Signed.N.cs
src/libraries/System.Memory/src/System/MemoryExtensions.cs
src/libraries/System.Memory/tests/Memory/CustomMemoryForTest.cs
src/libraries/System.Memory/tests/ReadOnlySpan/IndexOf.byte.cs
src/libraries/System.Memory/tests/ReadOnlySpan/IndexOfAny.byte.cs
src/libraries/System.Memory/tests/Span/IndexOf.byte.cs
src/libraries/System.Memory/tests/Span/IndexOfAny.byte.cs
src/libraries/System.Memory/tests/Span/Reverse.cs