Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IcuIsSortable()

static bool System.Globalization.CompareInfo.IcuIsSortable ( ReadOnlySpan< char > text)
inlinestaticprivate

Definition at line 1736 of file CompareInfo.cs.

1737 {
1738 do
1739 {
1740 if (Rune.DecodeFromUtf16(text, out var result, out var charsConsumed) != 0)
1741 {
1742 return false;
1743 }
1745 if (unicodeCategory == UnicodeCategory.PrivateUse || unicodeCategory == UnicodeCategory.OtherNotAssigned)
1746 {
1747 return false;
1748 }
1749 text = text.Slice(charsConsumed);
1750 }
1751 while (!text.IsEmpty);
1752 return true;
1753 }
static OperationStatus DecodeFromUtf16(ReadOnlySpan< char > source, out Rune result, out int charsConsumed)
Definition Rune.cs:168
static UnicodeCategory GetUnicodeCategory(Rune value)
Definition Rune.cs:662

References System.Text.Rune.DecodeFromUtf16(), System.Text.Rune.GetUnicodeCategory(), and System.text.

Referenced by System.Globalization.CompareInfo.IsSortable().