Skip to content

IRegexpCompiler

[Source]

Parse and compile an I-Regexp pattern string.

primitive val IRegexpCompiler

Constructors

create

[Source]

new val create()
: IRegexpCompiler val^

Returns


Public Functions

parse

[Source]

Parse pattern, returning compiled regexp or error.

fun box parse(
  pattern: String val)
: (IRegexp val | IRegexpParseError val)

Parameters

Returns


compile

[Source]

Parse pattern, raising on invalid input.

Convenience wrapper around parse() for call sites that don't need the error details — discards the IRegexpParseError and raises instead.

fun box compile(
  pattern: String val)
: IRegexp val ?

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns