CompareTo()
System::MemoryExtensions::CompareTo(const ReadOnlySpan<char16_t>&, const ReadOnlySpan<char16_t>&, StringComparison) function
Compares two character spans with specified string comparison rules.
int32_t System::MemoryExtensions::CompareTo(const ReadOnlySpan<char16_t> &span, const ReadOnlySpan<char16_t> &other, StringComparison comparisonType)
Arguments
| Parameter | Type | Description |
|---|---|---|
| span | const ReadOnlySpan<char16_t>& | The first character span |
| other | const ReadOnlySpan<char16_t>& | The second character span |
| comparisonType | StringComparison | The type of string comparison to perform |
Return Value
Negative value if span < other, zero if equal, positive if span > other
See Also
- Enum StringComparison
- Class ReadOnlySpan
- Namespace System::MemoryExtensions
- Library Aspose.Slides