| 71 | } |
| 72 | |
| 73 | bool Utility::isMedia(const c2d::Io::File &file) { |
| 74 | |
| 75 | if (file.type == c2d::Io::Type::File) { |
| 76 | std::vector<std::string> extensions = getMediaExtensions(); |
| 77 | for (auto &ext: extensions) { |
| 78 | if (c2d::Utility::endsWith(file.name, ext, false)) { |
| 79 | return true; |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | return false; |
| 85 | } |
| 86 | |
| 87 | std::string Utility::formatTime(double seconds) { |
| 88 |
nothing calls this directly
no outgoing calls
no test coverage detected