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

Function StripLeft

util/charset/wide.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43TWtringBuf StripLeft(const TWtringBuf text) noexcept {
44 const auto* p = text.data();
45 const auto* const pe = text.data() + text.size();
46
47 for (; p != pe && IsWhitespace(*p); ++p) {
48 }
49
50 return {p, pe};
51}
52
53void StripLeft(TUtf16String& text) {
54 const auto stripped = StripLeft(TWtringBuf(text));

Callers 2

TestStripMethod · 0.70
StripFunction · 0.70

Calls 3

IsWhitespaceFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TestStripMethod · 0.56