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

Function string_remove_suffix

common/common.h:760–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760inline bool string_remove_suffix(std::string & str, std::string_view suffix) {
761 if (string_ends_with(str, suffix)) {
762 str.resize(str.size() - suffix.size());
763 return true;
764 }
765 return false;
766}
767
768inline size_t string_find_partial_stop(std::string_view str, std::string_view stop) {
769 if (!str.empty() && !stop.empty()) {

Callers 4

load_imatrixFunction · 0.85
load_imatrixMethod · 0.85
get_gguf_split_infoFunction · 0.85
get_gguf_split_infoFunction · 0.85

Calls 3

string_ends_withFunction · 0.70
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected