MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / ends_with

Function ends_with

tests/test_phase4.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24};
25
26static bool ends_with(const std::string & s, const std::string & suffix) {
27 return s.size() >= suffix.size() &&
28 s.compare(s.size() - suffix.size(), suffix.size(), suffix) == 0;
29}
30
31static std::vector<prompt_case> load_prompt_cases(const std::string & path) {
32 std::vector<prompt_case> cases;

Callers 1

category_for_tensorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected