KSyntaxHighlighting

wildcardmatcher.h
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
Syntax highlighting engine for Kate syntax definitions.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.