| 37 | } |
| 38 | |
| 39 | string StripSuffixString(StringPiece str, const StringPiece& suffix) { |
| 40 | if (str.ends_with(suffix)) |
| 41 | str.remove_suffix(suffix.length()); |
| 42 | return str.as_string(); |
| 43 | } |
| 44 | |
| 45 | bool TryStripSuffixString(StringPiece str, const StringPiece& suffix, |
| 46 | string* result) { |
no test coverage detected