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

Method EndsWith

util/generic/strbase.h:248–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 static constexpr bool EndsWith(const TCharType* what, size_t whatLen, const TCharType* with, size_t withLen) noexcept {
249 return withLen <= whatLen && TStringViewWithTraits(what + whatLen - withLen, withLen) == TStringViewWithTraits(with, withLen);
250 }
251
252 constexpr bool StartsWith(const TCharType* s, size_t n) const noexcept {
253 return StartsWith(Ptr(), Len(), s, n);

Callers 11

FinishItemsFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
TestPrefixSuffixMethod · 0.45
TestZeroMethod · 0.45
Y_UNIT_TESTFunction · 0.45
BeforeSuffixMethod · 0.45
Y_UNIT_TESTFunction · 0.45
IsFQDNFunction · 0.45
FillMethod · 0.45

Calls 5

EndsWithFunction · 0.50
emptyFunction · 0.50
eqEnum · 0.50
dataMethod · 0.45
lengthMethod · 0.45

Tested by 3

TestPrefixSuffixMethod · 0.36
TestZeroMethod · 0.36