Lines Matching full:ptr_
58 memcpy(buf, ptr_ + pos, ret);
66 const char* result = std::search(ptr_ + pos, ptr_ + length_,
67 s.ptr_, s.ptr_ + s.length_);
68 const size_type xpos = result - ptr_;
76 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
77 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos;
87 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_;
88 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_);
89 return result != last ? static_cast<size_t>(result - ptr_) : npos;
97 if (ptr_[i] == c)
129 return find_first_of(s.ptr_[0], pos);
134 if (lookup[static_cast<unsigned char>(ptr_[i])]) {
151 return find_first_not_of(s.ptr_[0], pos);
156 if (!lookup[static_cast<unsigned char>(ptr_[i])]) {
168 if (ptr_[pos] != c) {
181 return find_last_of(s.ptr_[0], pos);
186 if (lookup[static_cast<unsigned char>(ptr_[i])])
205 return find_last_not_of(s.ptr_[0], pos);
210 if (!lookup[static_cast<unsigned char>(ptr_[i])])
223 if (ptr_[i] != c)
234 return StringPiece(ptr_ + pos, n);