MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / StringToFormatArray

Function StringToFormatArray

DSView/pv/config/appconfig.cpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void StringToFormatArray(const QString &str, std::vector<StringPair> &protocolFormats)
57{
58 QStringList arr = str.split(";");
59 for (int i=0; i<arr.size(); i++){
60 QString line = arr[i];
61 if (!line.isEmpty()){
62 QStringList vs = line.split("=");
63 if (vs.size() == 2){
64 protocolFormats.push_back(StringPair(vs[0].toStdString(), vs[1].toStdString()));
65 }
66 }
67 }
68}
69
70//----------------read write field
71static void getFiled(const char *key, QSettings &st, QString &f, const char *dv)

Callers 1

_loadAppFunction · 0.85

Calls 2

StringPairClass · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected