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

Function Collapse

util/string/strip.h:303–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302template <class TStringType, class TWhitespaceFunc>
303std::enable_if_t<std::is_invocable_v<TWhitespaceFunc, typename TStringType::value_type>, bool> Collapse(
304 const TStringType& from, TStringType& to, TWhitespaceFunc isWhitespace, size_t maxLen = 0)
305{
306 return CollapseImpl(from, to, maxLen, isWhitespace);
307}
308
309template <class TStringType>
310inline bool Collapse(const TStringType& from, TStringType& to, size_t maxLen = 0) {

Callers 3

strip.hFile · 0.70
Y_UNIT_TESTFunction · 0.70
CollapseTextFunction · 0.70

Calls 1

CollapseImplFunction · 0.85

Tested by

no test coverage detected