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

Method GetTokensWithPrefix

library/cpp/expression/expression.cpp:431–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void TExpressionImpl::GetTokensWithPrefix(const TString& prefix, TVector<TString>& tokens) const {
432 tokens.clear();
433 for (const auto& token : Tokens) {
434 if (token.StartsWith(prefix)) {
435 tokens.push_back(token);
436 }
437 }
438}
439
440size_t TExpressionImpl::FindOperation(const TStringBuf& exp, std::array<TStringBuf, MaxOperands>& args, EOperation& oper) {
441 size_t parenLevel = 0;

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 3

clearMethod · 0.45
StartsWithMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected