Promote Regex.matchAt and matchesAt to Stable #KT-51470

This commit is contained in:
Ilya Gorbunov
2022-04-08 07:48:19 +03:00
committed by Space
parent d62b01ef41
commit 4598552e46
6 changed files with 24 additions and 24 deletions
+4 -4
View File
@@ -25,8 +25,8 @@ expect class Regex {
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of the [input] char sequence.
* @sample samples.text.Regexps.matchAt
*/
@SinceKotlin("1.5")
@ExperimentalStdlibApi
@SinceKotlin("1.7")
@WasExperimental(ExperimentalStdlibApi::class)
fun matchAt(input: CharSequence, index: Int): MatchResult?
/**
@@ -38,8 +38,8 @@ expect class Regex {
* @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of the [input] char sequence.
* @sample samples.text.Regexps.matchesAt
*/
@SinceKotlin("1.5")
@ExperimentalStdlibApi
@SinceKotlin("1.7")
@WasExperimental(ExperimentalStdlibApi::class)
fun matchesAt(input: CharSequence, index: Int): Boolean
fun containsMatchIn(input: CharSequence): Boolean