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

Function TrimLeadingWhitespaces

library/cpp/yt/string/string.cpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66////////////////////////////////////////////////////////////////////////////////
67
68[[nodiscard]] TStringBuf TrimLeadingWhitespaces(TStringBuf str Y_LIFETIME_BOUND)
69{
70 auto begin = str.find_first_not_of(' ');
71 return begin == TStringBuf::npos ? "" : str.substr(begin);
72}
73
74[[nodiscard]] TStringBuf Trim(TStringBuf str Y_LIFETIME_BOUND, TStringBuf whitespaces)
75{

Callers 1

TESTFunction · 0.85

Calls 2

find_first_not_ofMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected