enum RegexOption
source · line 4public
public enum RegexOption : Equals<RegexOption>, Hash
- Supertype
Equals<RegexOption> - Supertype
Hash
Options applied when compiling a PCRE2 UTF-8 pattern. Inline pattern options remain effective.
variant Multiline
source · line 8public
Multiline
Let line anchors recognize internal newlines.
variant AsciiClasses
source · line 14public
AsciiClasses
Restrict character classes and their word boundaries to ASCII.
variant DuplicateNames
source · line 16public
DuplicateNames
Permit multiple capture groups with the same name.
variant Comments
source · line 12public
Comments
Ignore unescaped pattern whitespace and permit comments.
function hash
source · line 30public
public override fun hash(): Long
- Overrides
hash
Returns a hash consistent with option equality.
function equals
source · line 28public
public override operator fun equals(other: RegexOption): Boolean
- Overrides
equals
Compares the option identities.
parameter other
source · line 28public
other: RegexOption
variant DotMatchesAll
source · line 10public
DotMatchesAll
Let a dot match newlines.
variant IgnoreCase
source · line 6public
IgnoreCase
Use PCRE2's Unicode case equivalences.