W3cubDocs

/Kotlin

RegexOption

Platform and version requirements: JS (1.1)
enum class RegexOption
Platform and version requirements: JVM (1.0), Native (1.3)
enum class RegexOption : FlagEnum

Provides enumeration values to use to set regular expression options.

Enum Values

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

IGNORE_CASE

Enables case-insensitive matching. Case comparison is Unicode-aware.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

MULTILINE

Enables multiline mode.

Platform and version requirements: JVM (1.0), Native (1.0)

LITERAL

Enables literal parsing of the pattern.

Platform and version requirements: JVM (1.0), Native (1.0)

UNIX_LINES

Enables Unix lines mode. In this mode, only the '\n' is recognized as a line terminator.

Platform and version requirements: JVM (1.0), Native (1.0)

COMMENTS

Permits whitespace and comments in pattern.

Platform and version requirements: JVM (1.0), Native (1.0)

DOT_MATCHES_ALL

Enables the mode, when the expression . matches any character, including a line terminator.

Platform and version requirements: JVM (1.0), Native (1.0)

CANON_EQ

Enables equivalence by canonical decomposition.

Properties

Platform and version requirements: JVM (1.0), Native (1.0)

mask

val mask: Int

value

Platform and version requirements: JVM (1.0), Native (1.3)
val value: Int
Platform and version requirements: JS (1.1)
val value: String

Extension Functions

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

coerceAtLeast

Ensures that this value is not less than the specified minimumValue.

fun <T : Comparable<T>> T.coerceAtLeast(minimumValue: T): T
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

coerceAtMost

Ensures that this value is not greater than the specified maximumValue.

fun <T : Comparable<T>> T.coerceAtMost(maximumValue: T): T
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

coerceIn

Ensures that this value lies in the specified range minimumValue..maximumValue.

fun <T : Comparable<T>> T.coerceIn(
    minimumValue: T?, 
    maximumValue: T?
): T

Ensures that this value lies in the specified range.

fun <T : Comparable<T>> T.coerceIn(
    range: ClosedFloatingPointRange<T>
): T
fun <T : Comparable<T>> T.coerceIn(range: ClosedRange<T>): T
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

rangeTo

Creates a range from this Comparable value to the specified that value.

operator fun <T : Comparable<T>> T.rangeTo(
    that: T
): ClosedRange<T>

Inheritors

Platform and version requirements: JVM (1.0), Native (1.0)

CANON_EQ

Enables equivalence by canonical decomposition.

Platform and version requirements: JVM (1.0), Native (1.0)

COMMENTS

Permits whitespace and comments in pattern.

Platform and version requirements: JVM (1.0), Native (1.0)

DOT_MATCHES_ALL

Enables the mode, when the expression . matches any character, including a line terminator.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

IGNORE_CASE

Enables case-insensitive matching. Case comparison is Unicode-aware.

Platform and version requirements: JVM (1.0), Native (1.0)

LITERAL

Enables literal parsing of the pattern.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

MULTILINE

Enables multiline mode.

Platform and version requirements: JVM (1.0), Native (1.0)

UNIX_LINES

Enables Unix lines mode. In this mode, only the '\n' is recognized as a line terminator.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-regex-option/index.html