MCPcopy Create free account
hub / github.com/Apress/design-patterns-in-modern-cpp / split

Method split

Structural/Adapter/adapter.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 vector<String> split(const string& delimeter = " ") const
35 {
36 vector<string> parts;
37 boost::split(parts, s, boost::is_any_of(delimeter.c_str()),
38 boost::token_compress_on);
39 return vector<String>(parts.begin(), parts.end());
40 }
41
42 size_t get_length() const { return s.length(); }
43

Callers 1

mainFunction · 0.80

Calls 3

splitFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected