MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / writeHelpToString

Function writeHelpToString

Tests/Libraries/Strings/CommandLineTest.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87};
88
89static bool writeHelpToString(const SC::CommandLineSpec& spec, SC::String& text)
90{
91 SC::GrowableBuffer<SC::String> growable(text);
92 SC::StringFormatOutput output(SC::StringEncoding::Utf8, growable);
93 const bool result = spec.writeHelp(output);
94 growable.finalize();
95 return result;
96}
97
98static bool writeErrorToString(const SC::CommandLineSpec& spec, const SC::CommandLineParseResult& parseResult,
99 SC::String& text)

Callers 1

CommandLineTestMethod · 0.85

Calls 1

finalizeMethod · 0.45

Tested by

no test coverage detected