| 157 | |
| 158 | |
| 159 | string upperSlaveToAgent(string s) |
| 160 | { |
| 161 | size_t index = 0; |
| 162 | |
| 163 | while (true) { |
| 164 | index = s.find("SLAVE", index); |
| 165 | if (index == std::string::npos) break; |
| 166 | s.replace(index, 5, "AGENT"); |
| 167 | index += 5; |
| 168 | } |
| 169 | |
| 170 | return s; |
| 171 | } |
| 172 | |
| 173 | |
| 174 | // This is a copy of the version in stout: |