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

Function read_text_file

app/cli/batch.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35std::string read_text_file(const std::filesystem::path & path) {
36 std::ifstream input(path);
37 if (!input) {
38 throw std::runtime_error("failed to open batch text file: " + path.string());
39 }
40 std::ostringstream raw;
41 raw << input.rdbuf();
42 return raw.str();
43}
44
45std::string normalize_text_as_paragraph(const std::string & text) {
46 std::string normalized;

Callers 1

Calls 1

strMethod · 0.80

Tested by

no test coverage detected