|
1 |
| -<Type Name="CompareInfo" FullName="System.Globalization.CompareInfo"> |
| 1 | +<Type Name="CompareInfo" FullName="System.Globalization.CompareInfo"> |
2 | 2 | <TypeSignature Language="C#" Value="public class CompareInfo" FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netstandard-1.0;netstandard-1.1;netstandard-1.2;netstandard-1.3;netstandard-1.4;netstandard-1.6" />
|
3 | 3 | <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CompareInfo extends System.Object" FrameworkAlternate="dotnet-uwp-10.0;netcore-1.0;netcore-1.1;netstandard-1.0;netstandard-1.1;netstandard-1.2;netstandard-1.3;netstandard-1.4;netstandard-1.6" />
|
4 | 4 | <TypeSignature Language="DocId" Value="T:System.Globalization.CompareInfo" />
|
|
256 | 256 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
257 | 257 | </Parameters>
|
258 | 258 | <Docs>
|
259 |
| - <param name="string1">To be added.</param> |
260 |
| - <param name="string2">To be added.</param> |
261 |
| - <param name="options">To be added.</param> |
262 |
| - <summary>To be added.</summary> |
263 |
| - <returns>To be added.</returns> |
| 259 | + <param name="string1">The first read-only span of characters to compare.</param> |
| 260 | + <param name="string2">The second read-only span of characters to compare.</param> |
| 261 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the comparison. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 262 | + <summary>Compares two read-only spans of characters.</summary> |
| 263 | + <returns>Zero if <paramref name="string1" /> and <paramref name="string2" /> are equal; or a negative value if <paramref name="string1" /> sorts before <paramref name="string2" />; or a positive value if <paramref name="string1" /> sorts after <paramref name="string2" />.</returns> |
264 | 264 | <remarks>To be added.</remarks>
|
| 265 | + <exception cref="T:System.ArgumentException"> |
| 266 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
265 | 267 | </Docs>
|
266 | 268 | </Member>
|
267 | 269 | <Member MemberName="Compare">
|
|
1516 | 1518 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
1517 | 1519 | </Parameters>
|
1518 | 1520 | <Docs>
|
1519 |
| - <param name="source">To be added.</param> |
1520 |
| - <param name="destination">To be added.</param> |
1521 |
| - <param name="options">To be added.</param> |
1522 |
| - <summary>To be added.</summary> |
1523 |
| - <returns>To be added.</returns> |
1524 |
| - <remarks>To be added.</remarks> |
| 1521 | + <param name="source">The text to get the sort key for.</param> |
| 1522 | + <param name="destination">The buffer into which the resulting sort key bytes are stored.</param> |
| 1523 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use for computing the sort key. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 1524 | + <summary>Computes a sort key for the specified input.</summary> |
| 1525 | + <returns>The number of bytes written to <paramref name="destination" />.</returns> |
| 1526 | + <remarks> |
| 1527 | + <format type="text/markdown"><![CDATA[ |
| 1528 | + |
| 1529 | +## Remarks |
| 1530 | + |
| 1531 | +Use <xref:System.Globalization.CompareInfo.GetSortKeyLength(System.ReadOnlySpan{System.Char},System.Globalization.CompareOptions)> to query the required size of `destination`. |
| 1532 | + It is acceptable to provide a larger-than-necessary output buffer to this method. |
| 1533 | + |
| 1534 | + ]]></format> |
| 1535 | + </remarks> |
| 1536 | + <exception cref="T:System.ArgumentException"> |
| 1537 | + <paramref name="destination" /> is too small to contain the resulting sort key; or <paramref name="options" /> contains an unsupported flag; or <paramref name="source" /> cannot be processed using the desired <see cref="T:System.Globalization.CompareOptions" /> under the current <see cref="T:System.Globalization.CompareInfo" />.</exception> |
1525 | 1538 | </Docs>
|
1526 | 1539 | </Member>
|
1527 | 1540 | <Member MemberName="GetSortKeyLength">
|
|
1552 | 1565 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="1" FrameworkAlternate="net-5.0" />
|
1553 | 1566 | </Parameters>
|
1554 | 1567 | <Docs>
|
1555 |
| - <param name="source">To be added.</param> |
1556 |
| - <param name="options">To be added.</param> |
1557 |
| - <summary>To be added.</summary> |
1558 |
| - <returns>To be added.</returns> |
| 1568 | + <param name="source">The text to get the sort key for.</param> |
| 1569 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use for computing the sort key. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 1570 | + <summary>Gets the total number of sort key bytes that would be produced from the specified input.</summary> |
| 1571 | + <returns>The length, in bytes, of the sort key.</returns> |
1559 | 1572 | <remarks>To be added.</remarks>
|
| 1573 | + <exception cref="T:System.ArgumentException"> |
| 1574 | + <paramref name="options" /> contains an unsupported flag. |
| 1575 | + |
| 1576 | +-or- |
| 1577 | + |
| 1578 | +<paramref name="source" /> cannot be processed using the desired <see cref="T:System.Globalization.CompareOptions" /> under the current <see cref="T:System.Globalization.CompareInfo" />.</exception> |
1560 | 1579 | </Docs>
|
1561 | 1580 | </Member>
|
1562 | 1581 | <MemberGroup MemberName="IndexOf">
|
|
1767 | 1786 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
1768 | 1787 | </Parameters>
|
1769 | 1788 | <Docs>
|
1770 |
| - <param name="source">To be added.</param> |
1771 |
| - <param name="value">To be added.</param> |
1772 |
| - <param name="options">To be added.</param> |
1773 |
| - <summary>To be added.</summary> |
1774 |
| - <returns>To be added.</returns> |
| 1789 | + <param name="source">The string to search within.</param> |
| 1790 | + <param name="value">The substring to locate within <paramref name="source" />.</param> |
| 1791 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the search. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 1792 | + <summary>Searches for the first occurrence of a substring within the specified read-only span of characters.</summary> |
| 1793 | + <returns>The zero-based index into <paramref name="source" /> where the substring <paramref name="value" /> first appears; or a negative value if <paramref name="value" /> cannot be found within <paramref name="source" />.</returns> |
1775 | 1794 | <remarks>To be added.</remarks>
|
| 1795 | + <exception cref="T:System.ArgumentException"> |
| 1796 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
1776 | 1797 | </Docs>
|
1777 | 1798 | </Member>
|
1778 | 1799 | <Member MemberName="IndexOf">
|
|
1804 | 1825 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
1805 | 1826 | </Parameters>
|
1806 | 1827 | <Docs>
|
1807 |
| - <param name="source">To be added.</param> |
1808 |
| - <param name="value">To be added.</param> |
1809 |
| - <param name="options">To be added.</param> |
1810 |
| - <summary>To be added.</summary> |
1811 |
| - <returns>To be added.</returns> |
| 1828 | + <param name="source">The read-only span of characters to search within.</param> |
| 1829 | + <param name="value">The <see cref="T:System.Text.Rune" /> to locate within <paramref name="source" />.</param> |
| 1830 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the search. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 1831 | + <summary>Searches for the first occurrence of a <see cref="T:System.Text.Rune" /> within the specified read-only span of characters.</summary> |
| 1832 | + <returns>The zero-based index into <paramref name="source" /> where <paramref name="value" /> first appears; or a negative value if <paramref name="value" /> cannot be found within <paramref name="source" />.</returns> |
1812 | 1833 | <remarks>To be added.</remarks>
|
| 1834 | + <exception cref="T:System.ArgumentException"> |
| 1835 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
1813 | 1836 | </Docs>
|
1814 | 1837 | </Member>
|
1815 | 1838 | <Member MemberName="IndexOf">
|
|
2900 | 2923 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
2901 | 2924 | </Parameters>
|
2902 | 2925 | <Docs>
|
2903 |
| - <param name="source">To be added.</param> |
2904 |
| - <param name="prefix">To be added.</param> |
2905 |
| - <param name="options">To be added.</param> |
2906 |
| - <summary>To be added.</summary> |
2907 |
| - <returns>To be added.</returns> |
| 2926 | + <param name="source">The read-only span of characters to search within.</param> |
| 2927 | + <param name="prefix">The prefix to attempt to match at the start of <paramref name="source" />.</param> |
| 2928 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the match. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 2929 | + <summary>Determines whether a read-only span of characters starts with a specific prefix.</summary> |
| 2930 | + <returns> |
| 2931 | + <see langword="true" /> if <paramref name="prefix" /> occurs at the start of <paramref name="source" />; otherwise, <see langword="false" />.</returns> |
2908 | 2932 | <remarks>To be added.</remarks>
|
| 2933 | + <exception cref="T:System.ArgumentException"> |
| 2934 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
2909 | 2935 | </Docs>
|
2910 | 2936 | </Member>
|
2911 | 2937 | <Member MemberName="IsPrefix">
|
|
3094 | 3120 | <Parameter Name="text" Type="System.ReadOnlySpan<System.Char>" Index="0" FrameworkAlternate="net-5.0" />
|
3095 | 3121 | </Parameters>
|
3096 | 3122 | <Docs>
|
3097 |
| - <param name="text">To be added.</param> |
3098 |
| - <summary>To be added.</summary> |
3099 |
| - <returns>To be added.</returns> |
| 3123 | + <param name="text">A read-only span of characters of zero or more Unicode characters.</param> |
| 3124 | + <summary>Indicates whether a specified Unicode read-only span of characters is sortable.</summary> |
| 3125 | + <returns> |
| 3126 | + <see langword="true" /> if <paramref name="text" /> is non-empty and contains only sortable Unicode characters; otherwise, <see langword="false" />.</returns> |
3100 | 3127 | <remarks>To be added.</remarks>
|
3101 | 3128 | </Docs>
|
3102 | 3129 | </Member>
|
|
3190 | 3217 | <Parameter Name="value" Type="System.Text.Rune" Index="0" FrameworkAlternate="net-5.0" />
|
3191 | 3218 | </Parameters>
|
3192 | 3219 | <Docs>
|
3193 |
| - <param name="value">To be added.</param> |
3194 |
| - <summary>To be added.</summary> |
3195 |
| - <returns>To be added.</returns> |
| 3220 | + <param name="value">A Unicode scalar value.</param> |
| 3221 | + <summary>Indicates whether a specified <see cref="T:System.Text.Rune" /> is sortable.</summary> |
| 3222 | + <returns> |
| 3223 | + <see langword="true" /> if <paramref name="value" /> is a sortable Unicode scalar value; otherwise, <see langword="false" />.</returns> |
3196 | 3224 | <remarks>To be added.</remarks>
|
3197 | 3225 | </Docs>
|
3198 | 3226 | </Member>
|
|
3314 | 3342 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
3315 | 3343 | </Parameters>
|
3316 | 3344 | <Docs>
|
3317 |
| - <param name="source">To be added.</param> |
3318 |
| - <param name="suffix">To be added.</param> |
3319 |
| - <param name="options">To be added.</param> |
3320 |
| - <summary>To be added.</summary> |
3321 |
| - <returns>To be added.</returns> |
| 3345 | + <param name="source">The read-only span of characters to search within.</param> |
| 3346 | + <param name="suffix">The suffix to attempt to match at the end of <paramref name="source" />.</param> |
| 3347 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the match. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 3348 | + <summary>Determines whether a read-only span of characters ends with a specific suffix.</summary> |
| 3349 | + <returns> |
| 3350 | + <see langword="true" /> if <paramref name="suffix" /> occurs at the end of <paramref name="source" />; otherwise, <see langword="false" />.</returns> |
3322 | 3351 | <remarks>To be added.</remarks>
|
| 3352 | + <exception cref="T:System.ArgumentException"> |
| 3353 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
3323 | 3354 | </Docs>
|
3324 | 3355 | </Member>
|
3325 | 3356 | <Member MemberName="IsSuffix">
|
|
3627 | 3658 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
3628 | 3659 | </Parameters>
|
3629 | 3660 | <Docs>
|
3630 |
| - <param name="source">To be added.</param> |
3631 |
| - <param name="value">To be added.</param> |
3632 |
| - <param name="options">To be added.</param> |
3633 |
| - <summary>To be added.</summary> |
3634 |
| - <returns>To be added.</returns> |
| 3661 | + <param name="source">The read-only span of characters to search within.</param> |
| 3662 | + <param name="value">The substring to locate within <paramref name="source" />.</param> |
| 3663 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the search. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 3664 | + <summary>Searches for the last occurrence of a substring within the specified read-only span of characters.</summary> |
| 3665 | + <returns>The zero-based index into <paramref name="source" /> where the substring <paramref name="value" /> last appears; or a negative value if <paramref name="value" /> cannot be found within <paramref name="source" />.</returns> |
3635 | 3666 | <remarks>To be added.</remarks>
|
| 3667 | + <exception cref="T:System.ArgumentException"> |
| 3668 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
3636 | 3669 | </Docs>
|
3637 | 3670 | </Member>
|
3638 | 3671 | <Member MemberName="LastIndexOf">
|
|
3664 | 3697 | <Parameter Name="options" Type="System.Globalization.CompareOptions" Index="2" FrameworkAlternate="net-5.0" />
|
3665 | 3698 | </Parameters>
|
3666 | 3699 | <Docs>
|
3667 |
| - <param name="source">To be added.</param> |
3668 |
| - <param name="value">To be added.</param> |
3669 |
| - <param name="options">To be added.</param> |
3670 |
| - <summary>To be added.</summary> |
3671 |
| - <returns>To be added.</returns> |
| 3700 | + <param name="source">The read-only span of characters to search within.</param> |
| 3701 | + <param name="value">The <see cref="T:System.Text.Rune" /> to locate within <paramref name="source" />.</param> |
| 3702 | + <param name="options">An optional combination of <see cref="T:System.Globalization.CompareOptions" /> enumeration values to use during the search. The default value is <see cref="F:System.Globalization.CompareOptions.None" />.</param> |
| 3703 | + <summary>Searches for the last occurrence of a <see cref="T:System.Text.Rune" /> within the specified read-only span of characters.</summary> |
| 3704 | + <returns>The zero-based index into <paramref name="source" /> where <paramref name="value" /> last appears; or a negative value if <paramref name="value" /> cannot be found within <paramref name="source" />.</returns> |
3672 | 3705 | <remarks>To be added.</remarks>
|
| 3706 | + <exception cref="T:System.ArgumentException"> |
| 3707 | + <paramref name="options" /> contains an unsupported combination of flags.</exception> |
3673 | 3708 | </Docs>
|
3674 | 3709 | </Member>
|
3675 | 3710 | <Member MemberName="LastIndexOf">
|
|
0 commit comments