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

Method StartsWith

util/generic/strbase.h:244–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 static constexpr bool StartsWith(const TCharType* what, size_t whatLen, const TCharType* with, size_t withLen) noexcept {
245 return withLen <= whatLen && TStringViewWithTraits(what, withLen) == TStringViewWithTraits(with, withLen);
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);

Callers 11

CommonStringBufferFunction · 0.45
CompressPathFunction · 0.45
mainFunction · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
TestPrefixSuffixMethod · 0.45
TestZeroMethod · 0.45
Y_UNIT_TESTFunction · 0.45
AfterPrefixMethod · 0.45
TestResizeMethod · 0.45
FillMethod · 0.45

Calls 5

StartsWithFunction · 0.50
emptyFunction · 0.50
eqEnum · 0.50
dataMethod · 0.45
lengthMethod · 0.45

Tested by 3

TestPrefixSuffixMethod · 0.36
TestZeroMethod · 0.36
TestResizeMethod · 0.36