| 119 | #endif |
| 120 | |
| 121 | std::string Path::fileName(const std::string &filePath) |
| 122 | { |
| 123 | std::string filename; |
| 124 | const size_t last_slash_idx = filePath.find_last_of("/\\"); |
| 125 | if (std::string::npos != last_slash_idx) |
| 126 | filename = filePath.substr(last_slash_idx + 1); |
| 127 | return filename; |
| 128 | } |
| 129 | |
| 130 | std::string Path::fileDirectory(const std::string &filePath) |
| 131 | { |
nothing calls this directly
no outgoing calls
no test coverage detected