MCPcopy Create free account
hub / github.com/alibaba/graph-learn / ends_with

Method ends_with

graphlearn/src/common/string/lite_string.h:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 }
108
109 bool ends_with(LiteString x) const {
110 return ((size_ >= x.size_) &&
111 (memcmp(data_ + (size_ - x.size_), x.data_, x.size_) == 0));
112 }
113
114 std::string ToString() const {
115 return std::string(data_, size_);

Callers 1

ConsumeSuffixFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected