matchesAbbreviation

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.

allowPartials

Whether to allow matches that do not account for every character of the abbreviation. Defaults to false.

ignoreCase

Whether to ignore case. Defaults to false.