• Home
  • Raw
  • Download

Lines Matching refs:StringView

4247 class StringView {  class
4251 StringView() : data_(nullptr), size_(0) {} in StringView() function in perfetto::base::StringView
4252 StringView(const StringView&) = default;
4253 StringView& operator=(const StringView&) = default;
4254 StringView(const char* data, size_t size) : data_(data), size_(size) { in StringView() function in perfetto::base::StringView
4261 StringView(const T& x) : StringView(x.data, x.size) { in StringView() function in perfetto::base::StringView
4267 StringView(const char* cstr) : data_(cstr), size_(strlen(cstr)) { in StringView() function in perfetto::base::StringView
4273 explicit StringView(const std::string& str) in StringView() function in perfetto::base::StringView
4295 size_t find(const StringView& str, size_t start_pos = 0) const { in find()
4304 return find(StringView(str), start_pos); in find()
4315 StringView substr(size_t pos, size_t count = npos) const { in substr()
4317 return StringView("", 0); in substr()
4319 return StringView(data_ + pos, rcount); in substr()
4322 bool CaseInsensitiveEq(const StringView& other) { in CaseInsensitiveEq()
4349 inline bool operator==(const StringView& x, const StringView& y) { in operator ==()
4357 inline bool operator!=(const StringView& x, const StringView& y) { in operator !=()
4361 inline bool operator<(const StringView& x, const StringView& y) { in operator <()
4369 inline bool operator>=(const StringView& x, const StringView& y) { in operator >=()
4373 inline bool operator>(const StringView& x, const StringView& y) { in operator >()
4377 inline bool operator<=(const StringView& x, const StringView& y) { in operator <=()
4385 struct std::hash<::perfetto::base::StringView> {
4386 size_t operator()(const ::perfetto::base::StringView& sv) const { in operator ()()
4493 size_t Find(const StringView& needle, const StringView& haystack);
4627 size_t Find(const StringView& needle, const StringView& haystack) { in Find()
4831 constexpr size_t StringView::npos;