MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / strsplit

Function strsplit

src/CPstrings.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20std::vector<std::string> strsplit(const std::string& s, char del) {
21 std::vector<std::string> v;
22 std::string::const_iterator i1 = s.begin(), i2;
23 while (true) {
24 i2 = std::find(i1, s.end(), del);
25 v.emplace_back(i1, i2);
26 if (i2 == s.end()) break;
27 i1 = i2 + 1;
28 }
29 return v;
30}
31
32#if defined(NO_FMTLIB)
33std::string format(const char* fmt, ...) {

Callers 15

COOLPROP_EESFunction · 0.85
CoolPropSolverMethod · 0.85
CP_PropsSImultiFunction · 0.85
extract_fractionsFunction · 0.85
StripPhaseFunction · 0.85
PropsSIFunction · 0.85
Props1SImultiFunction · 0.85
PropsSImultiFunction · 0.85
factoryFunction · 0.85

Calls

no outgoing calls

Tested by 4

run_checksMethod · 0.68
run_checksMethod · 0.68
run_checksMethod · 0.68
run_checksMethod · 0.68