MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / cleanup

Function cleanup

tests/proto.cc:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace snowhouse;
13
14static std::string cleanup(const std::string& s)
15{
16 auto outs = std::regex_replace(s, std::regex("[ \t\n]+"), " ");
17 outs = std::regex_replace(outs, std::regex("^[ \t\n]+"), "");
18 outs = std::regex_replace(outs, std::regex("[ \t\n]+$"), "");
19 return outs;
20}
21
22static void test_setting(void)
23{

Callers 6

test_settingFunction · 0.70
test_gettingFunction · 0.70
test_configFunction · 0.70
test_loadFunction · 0.70
test_findallfieldsFunction · 0.70
test_renderingFunction · 0.70

Calls

no outgoing calls

Tested by 6

test_settingFunction · 0.56
test_gettingFunction · 0.56
test_configFunction · 0.56
test_loadFunction · 0.56
test_findallfieldsFunction · 0.56
test_renderingFunction · 0.56