Does "this" start with "x"
| 85 | |
| 86 | // Does "this" start with "x" |
| 87 | bool StringPiece::starts_with(const StringPiece& x) const { |
| 88 | return ((m_length >= x.m_length) && MemoryEqual(m_ptr, x.m_ptr, x.m_length)); |
| 89 | } |
| 90 | |
| 91 | // Does "this" end with "x" |
| 92 | bool StringPiece::ends_with(const StringPiece& x) const { |