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

Method GetTokensWithSuffix

library/cpp/expression/expression.cpp:423–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void TExpressionImpl::GetTokensWithSuffix(const TString& suffix, TVector<TString>& tokens) const {
424 tokens.clear();
425 for (const auto& token : Tokens)
426 if (token.EndsWith(suffix)) {
427 tokens.push_back(token);
428 }
429}
430
431void TExpressionImpl::GetTokensWithPrefix(const TString& prefix, TVector<TString>& tokens) const {
432 tokens.clear();

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 3

clearMethod · 0.45
EndsWithMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected