| 137 | } |
| 138 | |
| 139 | std::string Path::fileExtension(const std::string &filePath) |
| 140 | { |
| 141 | std::string ext; |
| 142 | const size_t last_slash_idx = filePath.find_last_of("."); |
| 143 | if (std::string::npos != last_slash_idx) |
| 144 | ext = filePath.substr(last_slash_idx + 1); |
| 145 | return ext; |
| 146 | } |
| 147 | |
| 148 | bool String::startsWith(const std::string &str, const std::string &prefix, bool sensitive) |
| 149 | { |
nothing calls this directly
no outgoing calls
no test coverage detected