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

Function appendLine

Examples/SCExample/SCExample.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static Result appendLine(String& text, StringView line)
42{
43 if (line.isEmpty())
44 return Result(true);
45
46 auto builder = StringBuilder::createForAppendingTo(text);
47 if (not text.isEmpty())
48 {
49 SC_TRY(builder.append("\n"));
50 }
51 SC_TRY(builder.append(line));
52 builder.finalize();
53 return Result(true);
54}
55
56struct HotReloadOptionsStorage
57{

Callers 1

buildHotReloadOptionsFunction · 0.85

Calls 5

createForAppendingToFunction · 0.85
ResultClass · 0.50
isEmptyMethod · 0.45
appendMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected