MCPcopy Create free account
hub / github.com/ElementsProject/elements / MakeUnorderedList

Function MakeUnorderedList

src/util/string.h:71–74  ·  view source on GitHub ↗

* Create an unordered multi-line list of items. */

Source from the content-addressed store, hash-verified

69 * Create an unordered multi-line list of items.
70 */
71inline std::string MakeUnorderedList(const std::vector<std::string>& items)
72{
73 return Join(items, "\n", [](const std::string& item) { return "- " + item; });
74}
75
76/**
77 * Check if a string does not contain any embedded NUL (\0) characters

Callers 3

InitSettingsFunction · 0.85
verifychainFunction · 0.85
InitSettingsMethod · 0.85

Calls 1

JoinFunction · 0.85

Tested by

no test coverage detected