MCPcopy Create free account
hub / github.com/apache/impala / EndsWith

Function EndsWith

be/src/util/string-util.cc:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool EndsWith(const std::string& full_string, const std::string& end) {
73 if (full_string.size() >= end.size()) {
74 return (full_string.compare(full_string.size() - end.size(), end.size(),
75 end) == 0);
76 }
77 return false;
78}
79
80std::vector<std::string_view> SplitLines(std::string_view text) {
81 std::vector<std::string_view> lines;

Callers 1

TestErrorStringMethod · 0.85

Calls 2

compareMethod · 0.65
sizeMethod · 0.45

Tested by 1

TestErrorStringMethod · 0.68