1/*
2 SPDX-FileCopyrightText: 2007 Sebastian Pipping <webmaster@hartwork.org>
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
14namespace KSyntaxHighlighting
15{
16namespace 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 */
28KSYNTAXHIGHLIGHTING_EXPORT bool exactMatch(QStringView candidate, QStringView wildcard);
29}
30
31}
32
33#endif // KSYNTAXHIGHLIGHTING_WILDCARDMATCHER_H
34

source code of syntax-highlighting/src/lib/wildcardmatcher.h