Lines Matching refs:length_
33 target->assign(ptr_, length_);
37 int ret = min(length_ - pos, n);
43 if (length_ < 0 || pos > static_cast<size_type>(length_))
46 const char* result = std::search(ptr_ + pos, ptr_ + length_,
47 s.ptr_, s.ptr_ + s.length_);
49 return xpos + s.length_ <= length_ ? xpos : npos;
53 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) {
56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c);
57 return result != ptr_ + length_ ? result - ptr_ : npos;
61 if (length_ < s.length_) return npos;
62 const size_t ulen = length_;
63 if (s.length_ == 0) return min(ulen, pos);
65 const char* last = ptr_ + min(ulen - s.length_, pos) + s.length_;
66 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_);
71 if (length_ <= 0) return npos;
72 for (int i = min(pos, static_cast<size_type>(length_ - 1));
82 if (pos > length_) pos = length_;
83 if (n > length_ - pos) n = length_ - pos;