Home | History | Annotate | Download | only in base

Lines Matching defs:StringView

22 // A StringView is a simple (address, size) pair that points to an
37 // size_t count2(const StringView& str) {
55 // In the second case, the compiler will create a temporary StringView,
59 // Generally speaking, always use a reference or pointer to StringView
63 class StringView {
65 StringView() : mString(NULL), mSize(0U) {}
67 StringView(const StringView& other) :
71 StringView(const char* string) :
74 explicit StringView(const String& str);
76 StringView(const char* str, size_t len) : mString(str), mSize(len) {}
109 void set(const StringView& other) {
114 // Compare with another StringView.
115 int compare(const StringView& other) const;
117 StringView& operator=(const StringView& other) {
130 bool operator==(const StringView& x, const StringView& y);
132 inline bool operator!=(const StringView& x, const StringView& y) {
136 inline bool operator<(const StringView& x, const StringView& y) {
140 inline bool operator>=(const StringView& x, const StringView& y) {
144 inline bool operator >(const StringView& x, const StringView& y) {
148 inline bool operator<=(const StringView& x, const StringView& y) {