| 349 | } |
| 350 | |
| 351 | inline bool BeforeSuffix(const TdSelf& suffix, TdSelf& result) const noexcept { |
| 352 | if (this->EndsWith(suffix)) { |
| 353 | result = Head(size() - suffix.size()); |
| 354 | return true; |
| 355 | } |
| 356 | return false; |
| 357 | } |
| 358 | |
| 359 | // returns true if string started with `prefix`, false otherwise |
| 360 | inline bool SkipPrefix(const TdSelf& prefix) noexcept { |
no test coverage detected