| 113 | } |
| 114 | |
| 115 | void StringReplace(std::string& strBig, const std::string& strsrc, |
| 116 | const std::string& strdst) { |
| 117 | std::string::size_type pos = 0; |
| 118 | std::string::size_type srclen = strsrc.size(); |
| 119 | std::string::size_type dstlen = strdst.size(); |
| 120 | |
| 121 | while ((pos = strBig.find(strsrc, pos)) != std::string::npos) { |
| 122 | strBig.replace(pos, srclen, strdst); |
| 123 | pos += dstlen; |
| 124 | } |
| 125 | } |
| 126 | void GenerateJsonSignatureFormat( |
| 127 | const std::pair<std::string, SignatureDef>& signature, |
| 128 | std::string& json_signature) { |
no test coverage detected