| 192 | } |
| 193 | |
| 194 | String ConfigWriter::EscapeIcingaString(const String& str) |
| 195 | { |
| 196 | String result = str; |
| 197 | boost::algorithm::replace_all(result, "\\", "\\\\"); |
| 198 | boost::algorithm::replace_all(result, "\n", "\\n"); |
| 199 | boost::algorithm::replace_all(result, "\t", "\\t"); |
| 200 | boost::algorithm::replace_all(result, "\r", "\\r"); |
| 201 | boost::algorithm::replace_all(result, "\b", "\\b"); |
| 202 | boost::algorithm::replace_all(result, "\f", "\\f"); |
| 203 | boost::algorithm::replace_all(result, "\"", "\\\""); |
| 204 | return result; |
| 205 | } |
| 206 | |
| 207 | const std::vector<String>& ConfigWriter::GetKeywords() |
| 208 | { |
nothing calls this directly
no outgoing calls
no test coverage detected