Get rid of platform differences in Regex.find doc

This commit is contained in:
Abduqodiri Qurbonzoda
2021-05-31 01:25:45 +03:00
committed by Space
parent 7fdd1154ee
commit 225be54c61
4 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -66,11 +66,13 @@ public actual class Regex actual constructor(pattern: String, options: Set<Regex
return nativePattern.test(input.toString())
}
/** Returns the first match of a regular expression in the [input], beginning at the specified [startIndex].
/**
* Returns the first match of a regular expression in the [input], beginning at the specified [startIndex].
*
* @param startIndex An index to start search with, by default 0. Must be not less than zero and not greater than `input.length()`
* @return An instance of [MatchResult] if match was found or `null` otherwise.
* @throws IndexOutOfBoundsException if [startIndex] is less than zero or greater than the length of the [input] char sequence.
* @sample samples.text.Regexps.find
*/
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS")
public actual fun find(input: CharSequence, startIndex: Int = 0): MatchResult? {