MCPcopy Create free account
hub / github.com/bbc/audiowaveform / getFileExtension

Function getFileExtension

src/Options.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//------------------------------------------------------------------------------
110
111static 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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected