matches Abbreviation
fun String.matchesAbbreviation(abbreviation: String, allowPartials: Boolean = false, ignoreCase: Boolean = false): List<Pair<Int, Int>>
Find the characters of abbreviation within the receiver, in the order specified by abbreviation but not necessarily contiguously.
Return
The positions within the receiver where matching characters occurred. Empty if the abbreviation does not match completely.
Parameters
abbreviation
The abbreviation.
allow Partials
Whether to allow matches that do not account for every character of the abbreviation. Defaults to false.
ignore Case
Whether to ignore case. Defaults to false.