Albert
Loading...
Searching...
No Matches
matchconfig.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <albert/export.h>
6#include <QRegularExpression>
7
8namespace albert
9{
10
11// Doxygen does not like raw strings
12// QRegularExpression(R"([\s\\\/\-\[\](){}#!?<>"'=+*.:,;_]+)");
13const QRegularExpression default_separator_regex("([\\s\\\\/\\-\\[\\](){}#!?<>\"'=+*.:,;_]+)");
14
22class ALBERT_EXPORT MatchConfig
23{
24public:
25
29 bool fuzzy = false;
30
34 bool ignore_case = true;
35
39 bool ignore_word_order = true;
40
44 bool ignore_diacritics = true;
45
49 QRegularExpression separator_regex = default_separator_regex;
50
56 static const uint error_tolerance_divisor = 4;
57};
58
59} // namespace albert
Configuration for string matching.
Definition matchconfig.h:23
Definition action.h:10
const QRegularExpression default_separator_regex("([\\s\\\\/\\-\\[\\](){}#!?<>\"'=+*.:,;_]+)")