| 46 | bool StringStartsWithIgnoreCase(const StringPiece& str, const StringPiece& prefix); |
| 47 | |
| 48 | inline std::string StringRemovePrefix(const StringPiece& str, const StringPiece& prefix) |
| 49 | { |
| 50 | if (StringStartsWith(str, prefix)) |
| 51 | { |
| 52 | return str.substr(prefix.size()).as_string(); |
| 53 | } |
| 54 | return str.as_string(); |
| 55 | } |
| 56 | |
| 57 | inline bool StringRemovePrefix(std::string* str, const StringPiece& prefix) |
| 58 | { |