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

Function writeErrorToString

Tests/Libraries/Strings/CommandLineTest.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static bool writeErrorToString(const SC::CommandLineSpec& spec, const SC::CommandLineParseResult& parseResult,
99 SC::String& text)
100{
101 SC::GrowableBuffer<SC::String> growable(text);
102 SC::StringFormatOutput output(SC::StringEncoding::Utf8, growable);
103 const bool result = spec.writeError(parseResult, output);
104 growable.finalize();
105 return result;
106}
107} // namespace
108
109struct SC::CommandLineTest : public SC::TestCase

Callers 1

CommandLineTestMethod · 0.85

Calls 1

finalizeMethod · 0.45

Tested by

no test coverage detected