Lines Matching defs:npos

51     static const size_t npos = ~size_t(0);
291 /// \returns The index of the first occurrence of \p C, or npos if not
302 return npos;
307 /// \returns The index of the first occurrence of \p C, or npos if not
315 /// \p From, or npos if not found.
325 return npos;
331 /// from \p From, or npos if not found.
340 /// \returns The index of the first occurrence of \p Str, or npos if not
347 /// \returns The index of the first occurrence of \p Str, or npos if not
354 /// \returns The index of the last occurrence of \p C, or npos if not
357 size_t rfind(char C, size_t From = npos) const {
365 return npos;
370 /// \returns The index of the last occurrence of \p C, or npos if not
373 size_t rfind_lower(char C, size_t From = npos) const;
377 /// \returns The index of the last occurrence of \p Str, or npos if not
384 /// \returns The index of the last occurrence of \p Str, or npos if not
389 /// Find the first character in the string that is \p C, or npos if not
396 /// Find the first character in the string that is in \p Chars, or npos if
403 /// Find the first character in the string that is not \p C or npos if not
409 /// \p Chars, or npos if not found.
415 /// Find the last character in the string that is \p C, or npos if not
418 size_t find_last_of(char C, size_t From = npos) const {
422 /// Find the last character in the string that is in \p C, or npos if not
427 size_t find_last_of(StringRef Chars, size_t From = npos) const;
429 /// Find the last character in the string that is not \p C, or npos if not
432 size_t find_last_not_of(char C, size_t From = npos) const;
435 /// npos if not found.
439 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
445 bool contains(StringRef Other) const { return find(Other) != npos; }
451 bool contains(char C) const { return find_first_of(C) != npos; }
458 return find_lower(Other) != npos;
465 bool contains_lower(char C) const { return find_lower(C) != npos; }
579 /// the index is npos or greater than the length of the string then the
587 StringRef substr(size_t Start, size_t N = npos) const {
689 /// the index is npos or greater than the length of the string then the
693 /// substring. If this is npos or exceeds the number of characters
718 if (Idx == npos)
720 return std::make_pair(slice(0, Idx), slice(Idx+1, npos));
736 if (Idx == npos)
738 return std::make_pair(slice(0, Idx), slice(Idx + Separator.size(), npos));
789 if (Idx == npos)
791 return std::make_pair(slice(0, Idx), slice(Idx+1, npos));