KSyntaxHighlighting

wildcardmatcher.h
1 /*
2  SPDX-FileCopyrightText: 2007 Sebastian Pipping <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #ifndef KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
8 #define KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
9 
10 #include "ksyntaxhighlighting_export.h"
11 
12 #include <QStringView>
13 
14 namespace KSyntaxHighlighting
15 {
16 namespace WildcardMatcher
17 {
18 /**
19  * Matches a string against a given wildcard case-sensitively.
20  * The wildcard supports '*' (".*" in regex) and '?' ("." in regex), not more.
21  *
22  * @param candidate Text to match
23  * @param wildcard Wildcard to use
24  * @return True for an exact match, false otherwise
25  *
26  * @since 5.86
27  */
28 KSYNTAXHIGHLIGHTING_EXPORT bool exactMatch(QStringView candidate, QStringView wildcard);
29 }
30 
31 }
32 
33 #endif // KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:09:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.