Pages
API Documentation
On this page

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

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.