Lines Matching refs:size
19 constexpr StringView(const std::string& string) : StringView(string.data(), string.size()) {}
20 constexpr StringView(const char* data, size_t size) : data_(data), size_(size) {}
23 operator std::string() const { return std::string(data(), size()); }
30 constexpr size_t size() const { return size_; }
33 if (size() != other.size())
35 return !memcmp(data(), other.data(), size());
41 if (size() < other.size())
43 if (size() > other.size())
45 return memcmp(data(), other.data(), size()) < 0;