MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ends_with

Function ends_with

examples/server/server.cpp:232–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230};
231
232static bool ends_with(const std::string &str, const std::string &suffix)
233{
234 return str.size() >= suffix.size() &&
235 0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix);
236}
237
238static size_t find_partial_stop_string(const std::string &stop,
239 const std::string &text)

Callers 1

find_partial_stop_stringFunction · 0.85

Calls 2

sizeMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected