Kate
KateWildcardMatcher Namespace Reference
Functions | |
| bool | exactMatch (const QString &candidate, const QString &wildcard, bool caseSensitive=true) |
| bool | exactMatch (const QString &candidate, const QString &wildcard, int candidatePosFromRight, int wildcardPosFromRight, bool caseSensitive=true) |
Function Documentation
| bool KateWildcardMatcher::exactMatch | ( | const QString & | candidate, | |
| const QString & | wildcard, | |||
| bool | caseSensitive = true | |||
| ) |
Matches a string against a given wildcard.
The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more.
- Parameters:
-
candidate Text to match wildcard Wildcard to use caseSensitive Case-sensitivity flag
- Returns:
- True for an exact match, false otherwise
KDE 4.3 API Reference