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

Method startsWith

libminifi/include/utils/StringUtils.h:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 inline static bool startsWith(const std::string& value, const std::string& start_string) {
151 if (start_string.size() > value.size())
152 return false;
153 return std::equal(start_string.begin(), start_string.end(), value.begin());
154 }
155
156 inline static bool endsWith(const std::string& value, const std::string& end_string) {
157 if (end_string.size() > value.size())

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected