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

Method StripRange

util/string/strip.h:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67struct TStripImpl {
68 template <class It, class TStripCriterion>
69 static inline bool StripRange(It& b, It& e, TStripCriterion&& criterion) noexcept {
70 const size_t oldLen = e - b;
71
72 if (stripBeg) {
73 StripRangeBegin(b, e, criterion);
74 }
75
76 if (stripEnd) {
77 StripRangeEnd(b, e, criterion);
78 }
79
80 const size_t newLen = e - b;
81 return newLen != oldLen;
82 }
83
84 template <class T, class TStripCriterion>
85 static inline bool StripString(const T& from, T& to, TStripCriterion&& criterion) {

Callers

nothing calls this directly

Calls 2

StripRangeBeginFunction · 0.85
StripRangeEndFunction · 0.85

Tested by

no test coverage detected