MCPcopy Create free account
hub / github.com/Niko1221/Strata / write_text

Function write_text

engine/src/ling32/ling32_main.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56namespace {
57
58bool write_text(const std::filesystem::path& p, const std::string& s) {
59 std::ofstream f(p, std::ios::binary);
60 f.write(s.data(), static_cast<std::streamsize>(s.size()));
61 return static_cast<bool>(f);
62}
63double now_s() { return std::chrono::duration<double>(std::chrono::steady_clock::now().time_since_epoch()).count(); }
64
65int cmd_info(const std::string& file) {

Callers 3

cmd_export_tokenizerFunction · 0.70
print_lookaheadFunction · 0.70
cmd_runFunction · 0.70

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected