Skip to content

Case

[Source]

primitive val Case

Constructors

create

[Source]

new val create()
: Case val^

Returns


Public Functions

upper

[Source]

Uppercase every cp via its full (multi-cp) or simple (single-cp) Uppercase mapping. Returns InvalidUtf8 for ill-formed input.

fun box upper(
  s: String box)
: (String iso^ | InvalidUtf8 val)

Parameters

Returns


lower

[Source]

Lowercase every cp via its full or simple Lowercase mapping.

fun box lower(
  s: String box)
: (String iso^ | InvalidUtf8 val)

Parameters

Returns


title

[Source]

Titlecase using a "simple word-start" rule: cps at the start of the string or following a White_Space cp are titlecased; others are lowercased. See the file header for limitations.

fun box title(
  s: String box)
: (String iso^ | InvalidUtf8 val)

Parameters

Returns


fold

[Source]

Default full case folding for caseless comparison. Each cp is replaced by its full casefold expansion if present, else its simple casefold, else itself.

fun box fold(
  s: String box)
: (String iso^ | InvalidUtf8 val)

Parameters

Returns


eq

[Source]

fun box eq(
  that: Case val)
: Bool val

Parameters

Returns


ne

[Source]

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

Parameters

Returns