matchesGlob

fun String.matchesGlob(glob: String, ignoreCase: Boolean = false): Boolean

Checks if this string matches the given glob pattern.

Return

true if this string matches the glob pattern, false otherwise.

Author

OffRange

Parameters

glob

the glob pattern to match.

ignoreCase

if true, the match will be case-insensitive. Default is false, as package and class names are typically case-sensitive.