MCPcopy Create free account
hub / github.com/Yaafe/Yaafe / encodeParameterMap

Function encodeParameterMap

src_cpp/yaafe-core/utils.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 std::string encodeParameterMap(const ParameterMap& params)
72 {
73 ostringstream oss;
74 for (ParameterMap::const_iterator it=params.begin();it!=params.end();it++)
75 {
76 oss << it->first << "%" << it->second << "#";
77 }
78 string res = oss.str();
79 return res.substr(0,res.size()-1);
80 }
81
82 ParameterMap decodeParameterMap(const std::string& thestr)
83 {

Callers 1

createWriterMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected