wstring.compareTo

nint compareTo(const wchar[] this, const wchar[] other, bool caseInsensitive = false)

Compares two UTF-16 spans.

Returns

-1, 0, or 1 for less-than, equal, or greater-than.

Parameters

const wchar[]
this
const wchar[]
other

Text to compare with.

bool
caseInsensitive = false

Uses the UTF-16 helper's case-insensitive comparison.

Generated with campc 0.12.0-preview.1.