| 20 | } |
| 21 | |
| 22 | StringPiece StringPiece::substr(size_type pos, size_type n) const { |
| 23 | if (pos > size_) pos = size_; |
| 24 | if (n > size_ - pos) n = size_ - pos; |
| 25 | return StringPiece(data_ + pos, n); |
| 26 | } |
| 27 | |
| 28 | StringPiece::size_type StringPiece::find(const StringPiece& s, |
| 29 | size_type pos) const { |
no test coverage detected