Lines Matching refs:__pos

401 …_LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI const_reference operator[](size_type __pos) const _NOEXCEP…
402 …return _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__pos < size(), "string_view[] index out of bounds"), _…
405 _LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI const_reference at(size_type __pos) const {
406 return __pos >= size() ? (__throw_out_of_range("string_view::at"), __data_[0]) : __data_[__pos];
442 copy(_CharT* __s, size_type __n, size_type __pos = 0) const {
443 if (__pos > size())
445 size_type __rlen = std::min(__n, size() - __pos);
446 _Traits::copy(__s, data() + __pos, __rlen);
450 …_LIBCPP_CONSTEXPR _LIBCPP_HIDE_FROM_ABI basic_string_view substr(size_type __pos = 0, size_type __…
451 return __pos > size() ? (__throw_out_of_range("string_view::substr"), basic_string_view())
452 : basic_string_view(data() + __pos, std::min(__n, size() - __pos));
489 find(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT {
491 …_str_find<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __pos, __s.size());
494 …_LIBCPP_CONSTEXPR_SINCE_CXX14 _LIBCPP_HIDE_FROM_ABI size_type find(_CharT __c, size_type __pos = 0…
495 return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
499 find(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
501 … return std::__str_find<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
505 find(const _CharT* __s, size_type __pos = 0) const _NOEXCEPT {
508 data(), size(), __s, __pos, traits_type::length(__s));
513 rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
515 …str_rfind<value_type, size_type, traits_type, npos>(data(), size(), __s.data(), __pos, __s.size());
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);
524 rfind(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
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 {
533 data(), size(), __s, __pos, traits_type::length(__s));
538 find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT {
541 data(), size(), __s.data(), __pos, __s.size());
545 find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT {
546 return find(__c, __pos);
550 find_first_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
552 …td::__str_find_first_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
556 find_first_of(const _CharT* __s, size_type __pos = 0) const _NOEXCEPT {
559 data(), size(), __s, __pos, traits_type::length(__s));
564 find_last_of(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
567 data(), size(), __s.data(), __pos, __s.size());
571 find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT {
572 return rfind(__c, __pos);
576 find_last_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
578 …std::__str_find_last_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
582 find_last_of(const _CharT* __s, size_type __pos = npos) const _NOEXCEPT {
585 data(), size(), __s, __pos, traits_type::length(__s));
590 find_first_not_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT {
594 data(), size(), __s.data(), __pos, __s.size());
598 find_first_not_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT {
599 …std::__str_find_first_not_of<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
603 find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
605 …__str_find_first_not_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
609 find_first_not_of(const _CharT* __s, size_type __pos = 0) const _NOEXCEPT {
612 data(), size(), __s, __pos, traits_type::length(__s));
617 find_last_not_of(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT {
621 data(), size(), __s.data(), __pos, __s.size());
625 find_last_not_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT {
626 … std::__str_find_last_not_of<value_type, size_type, traits_type, npos>(data(), size(), __c, __pos);
630 find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT {
632 …:__str_find_last_not_of<value_type, size_type, traits_type, npos>(data(), size(), __s, __pos, __n);
636 find_last_not_of(const _CharT* __s, size_type __pos = npos) const _NOEXCEPT {
639 data(), size(), __s, __pos, traits_type::length(__s));