blob: 29ba169c8b8e8a7dc1c8ca4db841d31f057fb5e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "utils_global.h"
QT_BEGIN_NAMESPACE
class QJSEngine;
class QString;
QT_END_NAMESPACE
namespace Utils {
class MacroExpander;
class QTCREATOR_UTILS_EXPORT TemplateEngine {
public:
static bool preprocessText(const QString &input, QString *output, QString *errorMessage);
static QString processText(MacroExpander *expander, const QString &input,
QString *errorMessage);
static bool evaluateBooleanJavaScriptExpression(QJSEngine &engine, const QString &expression,
bool *result, QString *errorMessage);
};
} // namespace Utils
|