/
| 367 | |
| 368 | /*****************************************************************************/ |
| 369 | std::string pj_double_quote_string_param_if_needed(const std::string &str) { |
| 370 | /*****************************************************************************/ |
| 371 | if (str.find(' ') == std::string::npos) { |
| 372 | return str; |
| 373 | } |
| 374 | std::string ret; |
| 375 | ret += '"'; |
| 376 | ret += replaceAll(str, "\"", "\"\""); |
| 377 | ret += '"'; |
| 378 | return ret; |
| 379 | } |
| 380 | |
| 381 | /*****************************************************************************/ |
| 382 | char *pj_make_args(size_t argc, char **argv) { |
no test coverage detected