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

Method endsWith

src/thundersvm/util/log.cpp:828–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
830 }
831
832 std::string& Str::replaceAll(std::string& str, char replaceWhat, char replaceWith) {
833 std::replace(str.begin(), str.end(), replaceWhat, replaceWith);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected