MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / lowercase_extension

Function lowercase_extension

app/cli/batch.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27std::string lowercase_extension(const std::filesystem::path & path) {
28 std::string ext = path.extension().string();
29 std::transform(ext.begin(), ext.end(), ext.begin(), [](unsigned char ch) {
30 return static_cast<char>(std::tolower(ch));
31 });
32 return ext;
33}
34
35std::string read_text_file(const std::filesystem::path & path) {
36 std::ifstream input(path);

Callers 1

text_batch_format_forFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected