Home | History | Annotate | Download | only in base

Lines Matching defs:ptr_

49   StringPiece() : ptr_(NULL), length_(0) { }
51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { }
53 : ptr_(str.data()), length_(str.size()) { }
55 : ptr_(offset), length_(len) { }
61 const char* data() const { return ptr_; }
67 ptr_ = NULL;
71 ptr_ = data;
75 ptr_ = str;
79 ptr_ = reinterpret_cast<const char*>(data);
83 char operator[](size_type i) const { return ptr_[i]; }
86 ptr_ += n;
96 ptr_, x.ptr_, (length_ < x.length_ ? length_ : x.length_));
115 (wordmemcmp(ptr_, x.ptr_, x.length_) == 0));
121 (wordmemcmp(ptr_ + (length_-x.length_), x.ptr_, x.length_) == 0));
124 iterator begin() const { return ptr_; }
125 iterator end() const { return ptr_ + length_; }
127 return const_reverse_iterator(ptr_ + length_);
130 return const_reverse_iterator(ptr_);
163 const char* ptr_;