MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / string_startswith

Function string_startswith

common/jinja/value.cpp:583–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583static bool string_startswith(const std::string & str, const std::string & prefix) {
584 if (str.length() < prefix.length()) return false;
585 return str.compare(0, prefix.length(), prefix) == 0;
586}
587
588static bool string_endswith(const std::string & str, const std::string & suffix) {
589 if (str.length() < suffix.length()) return false;

Callers 1

value.cppFile · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected