KateWildcardMatcher Namespace Reference
Functions | |
| bool | exactMatch (const QString &candidate, const QString &wildcard, int candidatePosFromRight, int wildcardPosFromRight, bool caseSensitive=true) |
| bool | exactMatch (const QString &candidate, const QString &wildcard, bool caseSensitive=true) |
Function Documentation
| bool KateWildcardMatcher::exactMatch | ( | const QString & | candidate, |
| const QString & | wildcard, | ||
| int | candidatePosFromRight, | ||
| int | wildcardPosFromRight, | ||
| bool | caseSensitive = true |
||
| ) |
Definition at line 29 of file katewildcardmatcher.cpp.
| 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
Definition at line 80 of file katewildcardmatcher.cpp.
KDE 4.6 API Reference