Lines Matching defs:filePath
19 std::string JSFilePath::GetBaseName(const std::string &filePath)
21 auto beginPos = filePath.find_last_of("/");
28 return filePath.substr(beginPos);
31 std::string JSFilePath::GetFileName(const std::string &filePath)
33 auto beginPos = filePath.find_last_of('/');
39 auto endPos = filePath.find_last_of('.');
41 return filePath.substr(beginPos, endPos - beginPos);
44 return filePath.substr(beginPos);
47 std::string JSFilePath::GetFileExtension(const std::string &filePath)
49 auto beginPos = filePath.find_last_of('.');
51 return filePath.substr(beginPos);