1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QRCREADER_H
5#define QRCREADER_H
6
7#include <QtCore/qstring.h>
8#include <QtCore/qstringlist.h>
9
10class ReadQrcResult
11{
12public:
13 QStringList files;
14 QString errorString;
15 qint64 line = 0;
16
17 bool hasError() const { return !errorString.isEmpty(); }
18};
19
20ReadQrcResult readQrcFile(const QString &resourceFile, const QString &content);
21
22bool isSupportedExtension(const QString &ext);
23
24#endif // QRCREADER_H
25

source code of qttools/src/linguist/shared/qrcreader.h