MCPcopy Create free account
hub / github.com/9miao/CrossApp / RemoveFileExt

Function RemoveFileExt

scripting/javascript/bindings/ScriptingCore.cpp:480–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480static std::string RemoveFileExt(const std::string& filePath) {
481 size_t pos = filePath.rfind('.');
482 if (0 < pos) {
483 return filePath.substr(0, pos);
484 }
485 else {
486 return filePath;
487 }
488}
489
490JSBool ScriptingCore::runScript(const char *path, JSObject* global, JSContext* cx)
491{

Callers 1

runScriptMethod · 0.85

Calls 1

rfindMethod · 0.80

Tested by

no test coverage detected