MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / strSplit

Function strSplit

Thirdparty/g2o/g2o/stuff/string_tools.cpp:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143std::vector<std::string> strSplit(const std::string& str, const std::string& delimiters)
144{
145 std::vector<std::string> tokens;
146 string::size_type lastPos = 0;
147 string::size_type pos = 0;
148
149 do {
150 pos = str.find_first_of(delimiters, lastPos);
151 tokens.push_back(str.substr(lastPos, pos - lastPos));
152 lastPos = pos + 1;
153 } while (string::npos != pos);
154
155 return tokens;
156}
157
158bool strStartsWith(const std::string& s, const std::string& start)
159{

Callers 2

updateMapFromStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected