Skip to content

Trim

[Source]

primitive val Trim

Constructors

create

[Source]

new val create()
: Trim val^

Returns


Public Functions

trim

[Source]

Strip leading and trailing whitespace codepoints. Returns a fresh String iso^ containing the inner content.

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

Parameters

Returns


trim_start

[Source]

Strip only leading whitespace.

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

Parameters

Returns


trim_end

[Source]

Strip only trailing whitespace.

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

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns