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

Method AfterPrefix

util/generic/strbuf.h:343–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341
342public:
343 inline bool AfterPrefix(const TdSelf& prefix, TdSelf& result) const noexcept {
344 if (this->StartsWith(prefix)) {
345 result = Tail(prefix.size());
346 return true;
347 }
348 return false;
349 }
350
351 inline bool BeforeSuffix(const TdSelf& suffix, TdSelf& result) const noexcept {
352 if (this->EndsWith(suffix)) {

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls 2

StartsWithMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected