| 330 | } |
| 331 | |
| 332 | std::string getFileExtension(const char* file) { |
| 333 | std::string f = convertPathToDelims(file); |
| 334 | |
| 335 | char* p = (char*)strrchr(f.c_str(), '.'); |
| 336 | if (!p) |
| 337 | // it's ok to go one past, cus even if it's the end, that's the |
| 338 | // NUL char so we can set it to NUL again with out worry |
| 339 | { |
| 340 | return std::string(); |
| 341 | } |
| 342 | |
| 343 | return std::string(p + 1); |
| 344 | } |
| 345 | |
| 346 | std::string getFileTitle(const char* file) { |
| 347 | std::string f = convertPathToDelims(file); |
nothing calls this directly
no test coverage detected