Provide access to named groups of regex match result on JDK8.

#KT-12753 Fixed
This commit is contained in:
Ilya Gorbunov
2016-06-15 23:55:33 +03:00
parent 25974be3f8
commit a45da393b9
6 changed files with 94 additions and 2 deletions
@@ -2,6 +2,7 @@
package kotlin.internal
import java.io.Closeable
import java.util.regex.MatchResult
internal open class PlatformImplementations {
@@ -16,6 +17,10 @@ internal open class PlatformImplementations {
}
}
public open fun getMatchResultNamedGroup(matchResult: MatchResult, name: String): MatchGroup? {
throw UnsupportedOperationException("Retrieving groups by name is not supported on this platform.")
}
companion object {
@JvmField
@InlineExposed
@@ -52,5 +57,7 @@ internal open class PlatformImplementations {
}
}
}