MCPcopy Create free account
hub / github.com/colmap/colmap / StringGetAfter

Function StringGetAfter

src/colmap/util/string.cc:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237std::string StringGetAfter(const std::string& str, const std::string& key) {
238 if (key.empty()) {
239 return str;
240 }
241 std::size_t found = str.rfind(key);
242 if (found != std::string::npos) {
243 return str.substr(found + key.length(),
244 str.length() - (found + key.length()));
245 }
246 return "";
247}
248
249std::vector<std::string> StringSplit(const std::string& str,
250 const std::string& delim) {

Callers 2

ApplyRigConfigFunction · 0.85
TESTFunction · 0.85

Calls 1

emptyMethod · 0.80

Tested by 1

TESTFunction · 0.68