MCPcopy Create free account
hub / github.com/covscript/covscript / process_path

Function process_path

sources/covscript.cpp:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 garbage_collector<method_base> method_base::gc;
242
243 std::string process_path(const std::string &raw)
244 {
245 auto pos0 = raw.find('\"');
246 auto pos1 = raw.rfind('\"');
247 if (pos0 != std::string::npos) {
248 if (pos0 == pos1)
249 throw cs::fatal_error("argument syntax error.");
250 else
251 return raw.substr(pos0 + 1, pos1 - pos0 - 1);
252 }
253 else
254 return raw;
255 }
256
257#ifdef COVSCRIPT_PLATFORM_WIN32
258

Callers 6

covscript_argsFunction · 0.85
covscript_mainFunction · 0.85
covscript_argsFunction · 0.85
covscript_mainFunction · 0.85
get_sdk_pathFunction · 0.85
get_import_pathFunction · 0.85

Calls 1

fatal_errorClass · 0.85

Tested by

no test coverage detected