Skip to content

IgnoreAsciiCase

[Source]

Compares two strings lexicographically and case-insensitively. Only works for ASCII strings.

primitive val IgnoreAsciiCase

Constructors

create

[Source]

new val create()
: IgnoreAsciiCase val^

Returns


Public Functions

compare

[Source]

Less: left sorts lexicographically smaller than right Equal: same size, same content Greater: left sorts lexicographically higher than right

_compare("A", "B") ==> Less _compare("AA", "A") ==> Greater _compare("A", "AA") ==> Less _compare("", "") ==> Equal

fun box compare(
  left: String val,
  right: String val)
: (Less val | Equal val | Greater val)

Parameters

Returns


eq

[Source]

Returns true if both strings have the same size and compare equal ignoring ASCII casing.

fun box eq(
  left: String val,
  right: String val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: IgnoreAsciiCase val)
: Bool val

Parameters

Returns