You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Add ROSpan Equals/CompareTo/IndexOf/Contains string-like APIs with StringComparison (#27319)
* Add ROSpan Equals/CompareTo/IndexOf/Contains string-like APIs with StringComparison
* Respond to recent change AsReadOnlySpan -> AsSpan
* Remove the out parameter from IndexOf
* Add tests and avoid allocations for StringComparison.Ordinal
* Remove duplicate definition of SoftHyphen
Copy file name to clipboardExpand all lines: src/System.Memory/src/System/MemoryExtensions.Portable.cs
+52Lines changed: 52 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,58 @@ namespace System
13
13
/// </summary>
14
14
publicstaticpartialclassMemoryExtensions
15
15
{
16
+
/// <summary>
17
+
/// Returns a value indicating whether the specified <paramref name="value"/> occurs within the <paramref name="span"/>.
18
+
/// <param name="span">The source span.</param>
19
+
/// <param name="value">The value to seek within the source span.</param>
20
+
/// <param name="comparisonType">One of the enumeration values that determines how the <paramref name="span"/> and <paramref name="value"/> are compared.</param>
/// Determines whether this <paramref name="span"/> and the specified <paramref name="value"/> span have the same characters
27
+
/// when compared using the specified <paramref name="comparisonType"/> option.
28
+
/// <param name="span">The source span.</param>
29
+
/// <param name="value">The value to compare with the source span.</param>
30
+
/// <param name="comparisonType">One of the enumeration values that determines how the <paramref name="span"/> and <paramref name="value"/> are compared.</param>
/// Compares the specified <paramref name="span"/> and <paramref name="value"/> using the specified <paramref name="comparisonType"/>,
44
+
/// and returns an integer that indicates their relative position in the sort order.
45
+
/// <param name="span">The source span.</param>
46
+
/// <param name="value">The value to compare with the source span.</param>
47
+
/// <param name="comparisonType">One of the enumeration values that determines how the <paramref name="span"/> and <paramref name="value"/> are compared.</param>
/// Reports the zero-based index of the first occurrence of the specified <paramref name="value"/> in the current <paramref name="span"/>.
54
+
/// <param name="span">The source span.</param>
55
+
/// <param name="value">The value to seek within the source span.</param>
56
+
/// <param name="comparisonType">One of the enumeration values that determines how the <paramref name="span"/> and <paramref name="value"/> are compared.</param>
0 commit comments