Get rid of platform differences in Regex.findAll() doc

This commit is contained in:
Abduqodiri Qurbonzoda
2021-05-31 02:08:01 +03:00
committed by Space
parent 53b6c25533
commit 0b521b5183
2 changed files with 4 additions and 0 deletions
@@ -179,6 +179,8 @@ public actual class Regex internal constructor(internal val nativePattern: Patte
* Returns a sequence of all occurrences of a regular expression within the [input] string, beginning at the specified [startIndex].
*
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of the [input] char sequence.
*
* @sample samples.text.Regexps.findAll
*/
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
actual fun findAll(input: CharSequence, startIndex: Int = 0): Sequence<MatchResult> {
@@ -33,6 +33,8 @@ expect class Regex {
/**
* Returns a sequence of all occurrences of a regular expression within the [input] string, beginning at the specified [startIndex].
*
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of the [input] char sequence.
*
* @sample samples.text.Regexps.findAll
*/
fun findAll(input: CharSequence, startIndex: Int = 0): Sequence<MatchResult>