MCPcopy Create free account
hub / github.com/catboost/catboost / CollapseText

Function CollapseText

util/string/strip.h:338–342  ·  view source on GitHub ↗

The same as Collapse() + truncates the string to maxLen. @details An ellipsis is inserted at the end of the truncated line.

Source from the content-addressed store, hash-verified

336/// The same as Collapse() + truncates the string to maxLen.
337/// @details An ellipsis is inserted at the end of the truncated line.
338inline void CollapseText(TString& s, size_t maxLen) {
339 TString to;
340 CollapseText(s, to, maxLen);
341 s = to;
342}

Callers 1

Y_UNIT_TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected