Lines Matching refs:npos

87       static constexpr size_type npos = size_type(-1);
132 constexpr basic_string_view substr(size_type pos = 0, size_type n = npos) const;
145 constexpr size_type rfind(basic_string_view s, size_type pos = npos) const noexcept;
146 constexpr size_type rfind(charT c, size_type pos = npos) const noexcept;
148 …constexpr size_type rfind(const charT* s, size_type pos = npos) const noexcept; // noexcept as an …
153 constexpr size_type find_last_of(basic_string_view s, size_type pos = npos) const noexcept;
154 constexpr size_type find_last_of(charT c, size_type pos = npos) const noexcept;
156 …constexpr size_type find_last_of(const charT* s, size_type pos = npos) const noexcept; // noexcept…
161 … constexpr size_type find_last_not_of(basic_string_view s, size_type pos = npos) const noexcept;
162 constexpr size_type find_last_not_of(charT c, size_type pos = npos) const noexcept;
164 …constexpr size_type find_last_not_of(const charT* s, size_type pos = npos) const noexcept; // noex…
295 static _LIBCPP_CONSTEXPR const size_type npos = -1; // size_type(-1);
450 …R _LIBCPP_HIDE_FROM_ABI basic_string_view substr(size_type __pos = 0, size_type __n = npos) const {
491 …return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __pos…
495 return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
501 … return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
507 return std::__str_find<value_type, size_type, traits_type, npos>(
513 rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
515 …return std::__str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __po…
519 rfind(_CharT __c, size_type __pos = npos) const _NOEXCEPT {
520 return std::__str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
526 …return std::__str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
530 rfind(const _CharT* __s, size_type __pos = npos) const _NOEXCEPT {
532 return std::__str_rfind<value_type, size_type, traits_type, npos>(
540 return std::__str_find_first_of<value_type, size_type, traits_type, npos>(
552 …return std::__str_find_first_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __p…
558 return std::__str_find_first_of<value_type, size_type, traits_type, npos>(
564 find_last_of(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
566 return std::__str_find_last_of<value_type, size_type, traits_type, npos>(
571 find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT {
578 …return std::__str_find_last_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __po…
582 find_last_of(const _CharT* __s, size_type __pos = npos) const _NOEXCEPT {
584 return std::__str_find_last_of<value_type, size_type, traits_type, npos>(
593 return std::__str_find_first_not_of<value_type, size_type, traits_type, npos>(
599 …return std::__str_find_first_not_of<value_type, size_type, traits_type, npos>(data(), size(), __c,…
605 …return std::__str_find_first_not_of<value_type, size_type, traits_type, npos>(data(), size(), __s,…
611 return std::__str_find_first_not_of<value_type, size_type, traits_type, npos>(
617 find_last_not_of(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
620 return std::__str_find_last_not_of<value_type, size_type, traits_type, npos>(
625 find_last_not_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT {
626 …return std::__str_find_last_not_of<value_type, size_type, traits_type, npos>(data(), size(), __c, …
632 …return std::__str_find_last_not_of<value_type, size_type, traits_type, npos>(data(), size(), __s, …
636 find_last_not_of(const _CharT* __s, size_type __pos = npos) const _NOEXCEPT {
638 return std::__str_find_last_not_of<value_type, size_type, traits_type, npos>(
656 return size() >= __s.size() && compare(size() - __s.size(), npos, __s) == 0;
669 …P_HIDE_FROM_ABI bool contains(basic_string_view __sv) const noexcept { return find(__sv) != npos; }
671 …pr _LIBCPP_HIDE_FROM_ABI bool contains(value_type __c) const noexcept { return find(__c) != npos; }
673 …expr _LIBCPP_HIDE_FROM_ABI bool contains(const value_type* __s) const { return find(__s) != npos; }