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

Function text_batch_format_for

app/cli/batch.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91};
92
93const TextBatchFileFormat * text_batch_format_for(const std::filesystem::path & path) {
94 const auto ext = lowercase_extension(path);
95 for (const auto & format : kTextBatchFileFormats) {
96 if (ext == format.extension) {
97 return &format;
98 }
99 }
100 return nullptr;
101}
102
103std::string supported_text_batch_extensions() {
104 std::ostringstream out;

Callers 1

build_text_dir_batchFunction · 0.85

Calls 1

lowercase_extensionFunction · 0.70

Tested by

no test coverage detected