astring.compareTo

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

Compares two ASCII spans.

Returns

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

Parameters

const achar[]
this
const achar[]
other

Text to compare with.

bool
caseInsensitive = false

Uses ASCII case-insensitive comparison.

Generated with campc 0.12.0-preview.1.