Add pattern and options properties to common Regex

And add a test that accesses them and checks they work as expected.
This commit is contained in:
Ilya Gorbunov
2017-12-22 21:19:51 +03:00
parent d9edc5f221
commit 10639eaf6a
2 changed files with 14 additions and 0 deletions
@@ -43,6 +43,9 @@ expect class Regex {
constructor(pattern: String, option: RegexOption)
constructor(pattern: String, options: Set<RegexOption>)
val pattern: String
val options: Set<RegexOption>
fun matchEntire(input: CharSequence): MatchResult?
infix fun matches(input: CharSequence): Boolean
fun containsMatchIn(input: CharSequence): Boolean