Returns whether str ends with suffix.
| 175 | |
| 176 | // Returns whether str ends with suffix. |
| 177 | inline bool HasSuffixString(const StringPiece& str, |
| 178 | const StringPiece& suffix) { |
| 179 | return str.ends_with(suffix); |
| 180 | } |
| 181 | |
| 182 | // Returns true if the string passed in matches the pattern. The pattern |
| 183 | // string can contain wildcards like * and ? |