MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / startsWith

Method startsWith

src/thundersvm/util/log.cpp:824–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822 }
823
824 bool Str::startsWith(const std::string& str, const std::string& start) {
825 return (str.length() >= start.length()) && (str.compare(0, start.length(), start) == 0);
826 }
827
828 bool Str::endsWith(const std::string& str, const std::string& end) {
829 return (str.length() >= end.length()) && (str.compare(str.length() - end.length(), end.length(), end) == 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected