Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Utils
Library
SearchMode.h
1
/* SearchMode.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (Lucio Carreras)
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef LIBRARYSEARCHMODE_H
22
#define LIBRARYSEARCHMODE_H
23
24
#include <type_traits>
25
26
template
<
typename
T>
27
class
QList
;
28
class
QChar;
29
class
QString;
30
31
namespace
Library
32
{
33
enum class
SearchMode :
34
int
35
{
36
None = 0,
37
CaseInsensitve = (1 << 0),
38
NoSpecialChars = (1 << 1),
39
NoDiacriticChars = (1 << 2),
40
SearchModeMaskSize = (1 << 3)
41
};
42
43
using
SearchModeMask = std::underlying_type_t<SearchMode>;
44
45
QString convertSearchstring(
const
QString& str);
46
QString convertSearchstring(
const
QString& str, SearchModeMask mode);
47
QString convertSearchstring(
const
QString& str, SearchModeMask mode,
const
QList<QChar>& ignoredChars);
48
}
49
50
#endif
// LIBRARYSEARCHMODE_H
QList
Definition
EngineUtils.h:33
Generated on
for Sayonara Player by
1.17.0