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

Function StringStartsWith

src/colmap/util/string.cc:257–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool StringStartsWith(const std::string& str, const std::string& prefix) {
258 return !prefix.empty() && prefix.size() <= str.size() &&
259 str.substr(0, prefix.size()) == prefix;
260}
261
262void StringLeftTrim(std::string* str) {
263 str->erase(str->begin(),

Callers 5

ApplyRigConfigFunction · 0.85
RunModelAlignerFunction · 0.85
ImportPMVSWorkspaceFunction · 0.85
TESTFunction · 0.85
IsURIFunction · 0.85

Calls 2

emptyMethod · 0.80
sizeMethod · 0.80

Tested by 1

TESTFunction · 0.68