MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / endsWith

Method endsWith

libminifi/include/utils/StringUtils.h:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 inline static bool endsWith(const std::string& value, const std::string& end_string) {
157 if (end_string.size() > value.size())
158 return false;
159 return std::equal(end_string.rbegin(), end_string.rend(), value.rbegin());
160 }
161
162 inline static std::string hex_ascii(const std::string& in) {
163 std::string newString;

Callers 1

acceptMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected