aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/silversearcher/silversearcherparser.h
blob: 67b3e124f421513993423c1ac7ff37303229ff4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2017 Przemyslaw Gorszkowski <pgorszkowski@gmail.com>.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/searchresultitem.h>

#include <QFuture>
#include <QRegularExpression>

namespace Utils { class FilePath; }

namespace SilverSearcher {

Utils::SearchResultItems parse(const QFuture<void> &future, const QString &input,
                               const std::optional<QRegularExpression> &regExp,
                               Utils::FilePath *lastFilePath);

Utils::SearchResultItems parse(const QString &input,
                               const std::optional<QRegularExpression> &regExp = {});

} // namespace SilverSearcher