Provide access to named groups of regex match result on JDK8.
#KT-12753 Fixed
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user