| 67 | struct 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) { |
nothing calls this directly
no test coverage detected