string.compareTo

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

Compares two text spans.

Returns

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

Parameters

const char[]
this
const char[]
other

Text to compare with.

bool
caseInsensitive = false

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

Generated with campc 0.12.0-preview.1.