arch/arm64: Support FEAT_CCIDX
[coreboot2.git] / util / coreboot-configurator / src / application / Util.h
blob55553f29816e3b339495d2e837c44895370ac952
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #pragma once
5 #include <QIODevice>
6 #include <QMap>
7 #include <QString>
9 namespace Util {
10 inline QMap<QString,QString> parseParameters(QIODevice& dev){
11 QString curr_line;
12 QMap<QString, QString> result;
14 while (!dev.atEnd()) {
15 curr_line = dev.readLine().trimmed();
17 auto split = curr_line.split('=');
18 if(split.size()!=2){
19 continue;
22 result.insert(split[0].trimmed(), split[1].trimmed());
24 return result;