MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / stringToInt

Function stringToInt

src/sys/utils.cxx:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98int stringToInt(const std::string& s) {
99 std::stringstream ss(s);
100 int val;
101 if (!(ss >> val)) {
102 throw BoutException("Could not convert string '{:s}' to int\n", s);
103 }
104 return val;
105}
106
107std::list<std::string>& strsplit(const std::string& s, char delim,
108 std::list<std::string>& elems) {

Callers 2

cloneModMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68