Lines Matching refs:length_
57 size_type ret = std::min(length_ - pos, n); in copy()
63 if (pos > length_) in find()
67 std::search(ptr_ + pos, ptr_ + length_, s.ptr_, s.ptr_ + s.length_); in find()
69 return xpos + s.length_ <= length_ ? xpos : npos; in find()
73 if (pos >= length_) in find()
76 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find()
77 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
81 if (length_ < s.length_) in rfind()
85 return std::min(length_, pos); in rfind()
87 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind()
88 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind()
93 if (length_ == 0) in rfind()
96 for (size_type i = std::min(pos, length_ - 1);; --i) { in rfind()
124 if (length_ == 0 || s.length_ == 0) in find_first_of()
128 if (s.length_ == 1) in find_first_of()
133 for (size_type i = pos; i < length_; ++i) { in find_first_of()
143 if (length_ == 0) in find_first_not_of()
146 if (s.length_ == 0) in find_first_not_of()
150 if (s.length_ == 1) in find_first_not_of()
155 for (size_type i = pos; i < length_; ++i) { in find_first_not_of()
164 if (length_ == 0) in find_first_not_of()
167 for (; pos < length_; ++pos) { in find_first_not_of()
176 if (length_ == 0 || s.length_ == 0) in find_last_of()
180 if (s.length_ == 1) in find_last_of()
185 for (size_type i = std::min(pos, length_ - 1);; --i) { in find_last_of()
196 if (length_ == 0) in find_last_not_of()
199 size_type i = std::min(pos, length_ - 1); in find_last_not_of()
200 if (s.length_ == 0) in find_last_not_of()
204 if (s.length_ == 1) in find_last_not_of()
219 if (length_ == 0) in find_last_not_of()
222 for (size_type i = std::min(pos, length_ - 1);; --i) { in find_last_not_of()
232 if (pos > length_) in substr()
233 pos = length_; in substr()
234 if (n > length_ - pos) in substr()
235 n = length_ - pos; in substr()