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