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

Function trim_copy

examples/server/httplib.h:2258–2261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2256}
2257
2258inline std::string trim_copy(const std::string &s) {
2259 auto r = trim(s.data(), s.data() + s.size(), 0, s.size());
2260 return s.substr(r.first, r.second - r.first);
2261}
2262
2263inline void split(const char *b, const char *e, char d,
2264 std::function<void(const char *, const char *)> fn) {

Callers 1

parseMethod · 0.70

Calls 4

substrMethod · 0.80
trimFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected