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

Function FormatArrayToString

DSView/pv/config/appconfig.cpp:40–54  ·  view source on GitHub ↗

------------function

Source from the content-addressed store, hash-verified

38
39//------------function
40static QString FormatArrayToString(std::vector<StringPair> &protocolFormats)
41{
42 QString str;
43
44 for (StringPair &o : protocolFormats){
45 if (!str.isEmpty()){
46 str += ";";
47 }
48 str += o.m_key.c_str();
49 str += "=";
50 str += o.m_value.c_str();
51 }
52
53 return str;
54}
55
56static void StringToFormatArray(const QString &str, std::vector<StringPair> &protocolFormats)
57{

Callers 1

_saveAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected