MCPcopy Create free account
hub / github.com/DFHack/dfhack / quotify_inner

Function quotify_inner

plugins/blueprint.cpp:1076–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076static string quotify_inner(const string &s) {
1077 if (s.find_first_of(" ,") == string::npos)
1078 return s;
1079 ostringstream buf;
1080 buf << "\"\"" << s << "\"\"";
1081 return buf.str();
1082}
1083
1084static string quotify_outer(const string &s) {
1085 if (s.find_first_of("\",") == string::npos)

Callers 2

get_place_keysFunction · 0.85
get_zone_keysFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected