From: Levi Broderick Date: Mon, 15 Apr 2019 01:26:05 +0000 (-0700) Subject: Remove old method names from Rune (#23938) X-Git-Tag: accepted/tizen/unified/20190813.215958~46^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16aad3508ba78b30eef06e75c3eb81c8c37b7fc2;p=platform%2Fupstream%2Fcoreclr.git Remove old method names from Rune (#23938) * Remove old method names from Rune, reenable suppressed tests * Revert re-enablement of failing ArraySegment tests --- diff --git a/src/System.Private.CoreLib/shared/System/Text/Rune.cs b/src/System.Private.CoreLib/shared/System/Text/Rune.cs index a71750e..00179bf 100644 --- a/src/System.Private.CoreLib/shared/System/Text/Rune.cs +++ b/src/System.Private.CoreLib/shared/System/Text/Rune.cs @@ -663,46 +663,6 @@ namespace System.Text } } - public static OperationStatus DecodeUtf16(ReadOnlySpan utf16Source, out Rune result, out int charsConsumed) - { - // [TODO] This method was renamed to DecodeFromUtf16. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return DecodeFromUtf16(utf16Source, out result, out charsConsumed); - } - - public static OperationStatus DecodeUtf16FromEnd(ReadOnlySpan utf16Source, out Rune result, out int charsConsumed) - { - // [TODO] This method was renamed to DecodeLastFromUtf16. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return DecodeLastFromUtf16(utf16Source, out result, out charsConsumed); - } - - public static OperationStatus DecodeUtf8(ReadOnlySpan utf8Source, out Rune result, out int bytesConsumed) - { - // [TODO] This method was renamed to DecodeFromUtf8. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return DecodeFromUtf8(utf8Source, out result, out bytesConsumed); - } - - public static OperationStatus DecodeUtf8FromEnd(ReadOnlySpan utf8Source, out Rune result, out int bytesConsumed) - { - // [TODO] This method was renamed to DecodeLastFromUtf8. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return DecodeLastFromUtf8(utf8Source, out result, out bytesConsumed); - } - /// /// Encodes this to a UTF-16 destination buffer. /// @@ -985,16 +945,6 @@ namespace System.Text return false; } - public bool TryEncode(Span destination, out int charsWritten) - { - // [TODO] This method was renamed to TryEncodeToUtf16. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return TryEncodeToUtf16(destination, out charsWritten); - } - /// /// Encodes this to a destination buffer as UTF-8 bytes. /// @@ -1063,16 +1013,6 @@ namespace System.Text return false; } - public bool TryEncodeToUtf8Bytes(Span destination, out int bytesWritten) - { - // [TODO] This method was renamed to TryEncodeToUtf8. We'll leave this copy of - // the method here temporarily so that we don't break corefx consumers - // while the rename takes place. - // Tracking issue: https://github.com/dotnet/coreclr/issues/23319 - - return TryEncodeToUtf8(destination, out bytesWritten); - } - /// /// Attempts to get the which begins at index in /// string .