Companion

object Companion

Properties

Link copied to clipboard
const val ALL: Int = 255

Syntax flag, enables all optional regexp syntax.

Link copied to clipboard
const val ANYSTRING: Int = 8

Syntax flag, enables anystring (@).

Link copied to clipboard
const val ASCII_CASE_INSENSITIVE: Int = 256

Allows case-insensitive matching of ASCII characters.

Link copied to clipboard
const val AUTOMATON: Int = 16

Syntax flag, enables named automata (<identifier>).

Link copied to clipboard
const val CASE_INSENSITIVE: Int = 512

Allows case-insensitive matching of most Unicode characters.

Link copied to clipboard
const val DEPRECATED_COMPLEMENT: Int = 65536

Allows regexp parsing of the complement (~).

Link copied to clipboard
const val EMPTY: Int = 4

Syntax flag, enables empty language (#).

Link copied to clipboard
const val INTERSECTION: Int = 1

Syntax flag, enables intersection (&).

Link copied to clipboard
const val INTERVAL: Int = 32

Syntax flag, enables numerical intervals ( <*n*-*m*>).

Link copied to clipboard
const val NONE: Int = 0

Syntax flag, enables no optional regexp syntax.

Functions

Link copied to clipboard
fun makeAnyChar(flags: Int): RegExp
Link copied to clipboard
fun makeAnyString(flags: Int): RegExp
Link copied to clipboard
fun makeAutomaton(flags: Int, s: String): RegExp
Link copied to clipboard
fun makeChar(flags: Int, c: Int): RegExp
Link copied to clipboard
fun makeCharClass(flags: Int, from: IntArray, to: IntArray): RegExp
Link copied to clipboard
fun makeCharRange(flags: Int, from: Int, to: Int): RegExp
Link copied to clipboard
fun makeComplement(flags: Int, exp: RegExp): RegExp
Link copied to clipboard
fun makeConcatenation(flags: Int, exp1: RegExp, exp2: RegExp): RegExp
Link copied to clipboard

Creates node that will compute complement of arbitrary expression.

Link copied to clipboard
fun makeEmpty(flags: Int): RegExp
Link copied to clipboard
fun makeIntersection(flags: Int, exp1: RegExp, exp2: RegExp): RegExp
Link copied to clipboard
fun makeInterval(flags: Int, min: Int, max: Int, digits: Int): RegExp
Link copied to clipboard
fun makeOptional(flags: Int, exp: RegExp): RegExp
Link copied to clipboard
fun makeRepeat(flags: Int, exp: RegExp): RegExp
fun makeRepeat(flags: Int, exp: RegExp, min: Int): RegExp
fun makeRepeat(flags: Int, exp: RegExp, min: Int, max: Int): RegExp
Link copied to clipboard
fun makeString(flags: Int, s: String): RegExp
Link copied to clipboard
fun makeUnion(flags: Int, exp1: RegExp, exp2: RegExp): RegExp
Link copied to clipboard
fun newContainerNode(flags: Int, kind: RegExp.Kind, exp1: RegExp?, exp2: RegExp?): RegExp
Link copied to clipboard
fun newLeafNode(flags: Int, kind: RegExp.Kind, s: String?, c: Int, min: Int, max: Int, digits: Int, from: IntArray?, to: IntArray?): RegExp
Link copied to clipboard
fun newRepeatingNode(flags: Int, kind: RegExp.Kind, exp: RegExp, min: Int, max: Int): RegExp