MCPcopy Create free account
hub / github.com/bloomberg/pystack / limitOutput

Function limitOutput

src/pystack/_pystack/pytypes.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template<typename T>
37std::string
38limitOutput(T&& arg, ssize_t max_size)
39{
40 if (max_size - arg.size() > 0) {
41 return std::forward<T>(arg);
42 }
43 return ELLIPSIS;
44}
45
46std::string
47formatSequence(

Callers 1

toStringMethod · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected