MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_double_quote_string_param_if_needed

Function pj_double_quote_string_param_if_needed

src/internal.cpp:369–379  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

367
368/*****************************************************************************/
369std::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/*****************************************************************************/
382char *pj_make_args(size_t argc, char **argv) {

Callers 5

pj_make_argsFunction · 0.85
cs2cs_emulation_setupFunction · 0.85
io.cppFile · 0.85
PROJStringSyntaxParserFunction · 0.85
createFromPROJStringMethod · 0.85

Calls 1

replaceAllFunction · 0.85

Tested by

no test coverage detected