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

Method StrStartsWith

library/cpp/expression/expression_variable.cpp:165–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 return ToDouble() > secondOperand.ToDouble() + EPS ? 1.0 : 0.0;
164}
165double TExpressionVariable::StrStartsWith(const TExpressionVariable& secondOperand) const {
166 return StringValue.StartsWith(secondOperand.StringValue) ? 1.0 : 0.0;
167}
168double TExpressionVariable::StrLe(const TExpressionVariable& secondOperand) const {
169 return StringValue <= secondOperand.StringValue ? 1.0 : 0.0;
170}

Callers 2

CalcVariantExpressionMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 1

StartsWithMethod · 0.45

Tested by

no test coverage detected