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

Function SkipQuoted

library/cpp/expression/expression.cpp:405–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405static inline void SkipQuoted(const char quote, const TStringBuf& exp, size_t& i) {
406 Y_ASSERT(i >= 1);
407 if (quote != exp[i - 1]) {
408 return;
409 }
410 bool quoteFound = false;
411 Y_ENSURE(i >= 1, "CalcExpression error: Opening quote not found. ");
412
413 i--;
414 for (; i > 0; --i) {
415 if (quote == exp[i - 1]) {
416 quoteFound = true;
417 break;
418 }
419 }
420 Y_ENSURE(quoteFound, "CalcExpression error: Opening quote not found. ");
421}
422
423void TExpressionImpl::GetTokensWithSuffix(const TString& suffix, TVector<TString>& tokens) const {
424 tokens.clear();

Callers 1

FindOperationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected