MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / string_endswith

Function string_endswith

subprojects/llama.cpp/common/jinja/value.cpp:493–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static bool string_endswith(const std::string & str, const std::string & suffix) {
494 if (str.length() < suffix.length()) return false;
495 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0;
496}
497
498const func_builtins & value_string_t::get_builtins() const {
499 static const func_builtins builtins = {

Callers 1

value.cppFile · 0.85

Calls 2

lengthMethod · 0.65
compareMethod · 0.45

Tested by

no test coverage detected