MCPcopy Create free account
hub / github.com/acl-dev/acl / add_servers

Function add_servers

lib_acl_cpp/samples/connect/main.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56};
57
58static void add_servers(std::vector<acl::string>& servers, const char* s)
59{
60 acl::string buf(s);
61 const std::vector<acl::string>& tokens = buf.split2(",; \t");
62
63 for (std::vector<acl::string>::const_iterator cit = tokens.begin();
64 cit != tokens.end(); ++cit) {
65
66 servers.push_back(*cit);
67 }
68}
69
70static void load_servers(std::vector<acl::string>& servers, const char* f)
71{

Callers 1

mainFunction · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…