Allow to use Regex matches CharSequence and CharSequence matches Regex in infix form

#KT-14279
This commit is contained in:
Ilya Gorbunov
2017-01-17 19:01:02 +03:00
parent 387564d140
commit 288e0b3c7e
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ header class Regex {
constructor(pattern: String, options: Set<RegexOption>)
fun matchEntire(input: CharSequence): MatchResult?
fun matches(input: CharSequence): Boolean
infix fun matches(input: CharSequence): Boolean
fun containsMatchIn(input: CharSequence): Boolean
fun replace(input: CharSequence, replacement: String): String
fun replace(input: CharSequence, transform: (MatchResult) -> CharSequence): String