Lines Matching defs:npos

46     static const size_t npos = ~size_t(0);
226 /// \return - The index of the first occurrence of \arg C, or npos if not
232 return npos;
237 /// \return - The index of the first occurrence of \arg Str, or npos if not
243 /// \return - The index of the last occurrence of \arg C, or npos if not
245 size_t rfind(char C, size_t From = npos) const {
253 return npos;
258 /// \return - The index of the last occurrence of \arg Str, or npos if not
263 /// or npos if not found. Same as find.
269 /// Chars, or npos if not found.
275 /// \arg C or npos if not found.
279 /// in the string \arg Chars, or npos if not found.
285 /// npos if not found.
286 size_type find_last_of(char C, size_t From = npos) const {
291 /// or npos if not found.
294 size_type find_last_of(StringRef Chars, size_t From = npos) const;
297 /// \arg C, or npos if not found.
298 size_type find_last_not_of(char C, size_t From = npos) const;
301 /// \arg Chars, or npos if not found.
304 size_type find_last_not_of(StringRef Chars, size_t From = npos) const;
383 /// the index is npos or greater than the length of the string then the
389 StringRef substr(size_t Start, size_t N = npos) const {
411 /// the index is npos or greater than the length of the string then the
415 /// substring. If this is npos, or less than \arg Start, or exceeds the
436 if (Idx == npos)
438 return std::make_pair(slice(0, Idx), slice(Idx+1, npos));
453 if (Idx == npos)
455 return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
489 if (Idx == npos)
491 return std::make_pair(slice(0, Idx), slice(Idx+1, npos));