| 22 | #include "gutil/strings/stringpiece.h" |
| 23 | |
| 24 | string StripPrefixString(StringPiece str, const StringPiece& prefix) { |
| 25 | if (str.starts_with(prefix)) |
| 26 | str.remove_prefix(prefix.length()); |
| 27 | return str.as_string(); |
| 28 | } |
| 29 | |
| 30 | bool TryStripPrefixString(StringPiece str, const StringPiece& prefix, |
| 31 | string* result) { |
no test coverage detected