KSyntaxHighlighting::WildcardMatcher Namespace

namespace KSyntaxHighlighting::WildcardMatcher
Header: #include <KSyntaxHighlighting/WildcardMatcher>
CMake: find_package(KF6 REQUIRED COMPONENTS KSyntaxHighlighting)
target_link_libraries(mytarget PRIVATE KF6::KSyntaxHighlighting)

Functions

(since 5.86) bool exactMatch(QStringView candidate, QStringView wildcard)

Detailed Description

Function Documentation

[since 5.86] 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

This function was introduced in 5.86.