| 9613 | } |
| 9614 | } |
| 9615 | auto StringRef::substr(size_type start, size_type size) const noexcept -> StringRef { |
| 9616 | if (start < m_size) |
| 9617 | return StringRef(m_start + start, size); |
| 9618 | else |
| 9619 | return StringRef(); |
| 9620 | } |
| 9621 | auto StringRef::operator==(StringRef const &other) const noexcept -> bool { |
| 9622 | return size() == other.size() && (std::strncmp(m_start, other.m_start, size()) == 0); |
| 9623 | } |
no test coverage detected