Lines Matching refs:ptr_
33 memcpy(buf, ptr_ + pos, ret);
41 const char* result = std::search(ptr_ + pos, ptr_ + length_,
42 s.ptr_, s.ptr_ + s.length_);
43 const size_type xpos = result - ptr_;
51 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
52 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos;
62 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_;
63 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_);
64 return result != last ? static_cast<size_t>(result - ptr_) : npos;
72 if (ptr_[i] == c)
104 return find_first_of(s.ptr_[0], pos);
109 if (lookup[static_cast<unsigned char>(ptr_[i])]) {
126 return find_first_not_of(s.ptr_[0], pos);
131 if (!lookup[static_cast<unsigned char>(ptr_[i])]) {
143 if (ptr_[pos] != c) {
156 return find_last_of(s.ptr_[0], pos);
161 if (lookup[static_cast<unsigned char>(ptr_[i])])
180 return find_last_not_of(s.ptr_[0], pos);
185 if (!lookup[static_cast<unsigned char>(ptr_[i])])
198 if (ptr_[i] != c)
209 return StringPiece(ptr_ + pos, n);