| 109 | //------------------------------------------------------------------------------ |
| 110 | |
| 111 | static std::string getFileExtension(const boost::filesystem::path& filename) |
| 112 | { |
| 113 | std::string extension = filename.extension().string(); |
| 114 | |
| 115 | // Remove leading "." |
| 116 | if (!extension.empty()) { |
| 117 | extension.erase(0, 1); |
| 118 | } |
| 119 | |
| 120 | return extension; |
| 121 | } |
| 122 | |
| 123 | //------------------------------------------------------------------------------ |
| 124 |
no outgoing calls
no test coverage detected