KSyntaxHighlighting::WildcardMatcher Namespace
Stand-alone implementation of the Kate syntax highlighting engine. More...
- Header:
#include <KSyntaxHighlighting/WildcardMatcher> - CMake:
find_package(KF6 REQUIRED COMPONENTS KSyntaxHighlighting)
target_link_libraries(mytarget PRIVATE KF6::KSyntaxHighlighting)
Detailed Description
Function Documentation
bool WildcardMatcher::exactMatch(QStringView candidate, QStringView wildcard)
Matches a string against a given wildcard case-sensitively. The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more.
candidate Text to match
wildcard Wildcard to use
Returns true for an exact match, false otherwise