--------------------------------- FileUtil::ExtractName Extract the extension from a filename
| 198 | // Extract the extension from a filename |
| 199 | // |
| 200 | std::string FileUtil::ExtractExtension(std::string const& fileName) |
| 201 | { |
| 202 | std::size_t found = fileName.rfind("."); |
| 203 | |
| 204 | if (found != std::string::npos) |
| 205 | { |
| 206 | return fileName.substr(found + 1); |
| 207 | } |
| 208 | |
| 209 | return std::string(""); |
| 210 | } |
| 211 | |
| 212 | //--------------------------------- |
| 213 | // FileUtil::RemoveExtension |
nothing calls this directly
no outgoing calls
no test coverage detected