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

Function trim

common/chat-peg-parser.cpp:35–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static std::string_view trim(std::string_view sv) {
36 return trim_trailing_space(trim_leading_space(sv, 1));
37}
38
39// Count the number of unclosed '{' braces in a JSON-like string,
40// properly skipping braces inside quoted strings.

Callers 1

mapMethod · 0.70

Calls 2

trim_trailing_spaceFunction · 0.85
trim_leading_spaceFunction · 0.70

Tested by

no test coverage detected