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

Function string_strip

common/common.cpp:417–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417std::string string_strip(const std::string & str) {
418 size_t start = 0;
419 size_t end = str.size();
420 while (start < end && std::isspace(str[start])) {
421 start++;
422 }
423 while (end > start && std::isspace(str[end - 1])) {
424 end--;
425 }
426 return str.substr(start, end - start);
427}
428
429std::string string_get_sortable_timestamp() {
430 using clock = std::chrono::system_clock;

Callers 8

mainFunction · 0.85
mainFunction · 0.85
parse_devices_argFunction · 0.85
add_modelMethod · 0.85
assert_msg_equalsFunction · 0.85
read_testsFunction · 0.85
write_table_entryFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 2

assert_msg_equalsFunction · 0.68
read_testsFunction · 0.68