diff options
Diffstat (limited to 'absl/strings/string_view.cc')
-rw-r--r-- | absl/strings/string_view.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/absl/strings/string_view.cc b/absl/strings/string_view.cc index cb79d5df7065..dc034a83eea8 100644 --- a/absl/strings/string_view.cc +++ b/absl/strings/string_view.cc @@ -77,18 +77,6 @@ std::ostream& operator<<(std::ostream& o, string_view piece) { return o; } -string_view::size_type string_view::copy(char* buf, size_type n, - size_type pos) const { - size_type ulen = length_; - assert(pos <= ulen); - size_type rlen = std::min(ulen - pos, n); - if (rlen > 0) { - const char* start = ptr_ + pos; - std::copy(start, start + rlen, buf); - } - return rlen; -} - string_view::size_type string_view::find(string_view s, size_type pos) const noexcept { if (empty() || pos > length_) { |