| 35 | } |
| 36 | |
| 37 | std::string Path::GetExtension(const std::string& filepath) |
| 38 | { |
| 39 | size_t last_dot = filepath.rfind('.'); |
| 40 | if (last_dot == std::string::npos) |
| 41 | return ""; |
| 42 | return filepath.substr(last_dot); |
| 43 | } |
| 44 | |
| 45 | std::string Path::GetDirectory(const std::string& filepath) |
| 46 | { |