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

Function StringSplit

src/colmap/util/string.cc:249–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249std::vector<std::string> StringSplit(const std::string& str,
250 const std::string& delim) {
251 std::vector<std::string> elems;
252 // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
253 boost::split(elems, str, boost::is_any_of(delim), boost::token_compress_on);
254 return elems;
255}
256
257bool StringStartsWith(const std::string& str, const std::string& prefix) {
258 return !prefix.empty() && prefix.size() <= str.size() &&

Callers 10

CreateImageDirsMethod · 0.85
ReadStereoImagePairsFunction · 0.85
ImportPMVSWorkspaceFunction · 0.85
TESTFunction · 0.85
CSVToVectorFunction · 0.85
SplitFileExtensionFunction · 0.85
DownloadAndCacheFileFunction · 0.85
ReadPlyFunction · 0.85
ReadPlyMeshFunction · 0.85
HasPlyMeshFacesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68