Lines Matching refs:__pos
386 const_reference operator[](size_type __pos) const _NOEXCEPT {
387 return _LIBCPP_ASSERT(__pos < size(), "string_view[] index out of bounds"), __data[__pos];
391 const_reference at(size_type __pos) const
393 return __pos >= size()
395 : __data[__pos];
442 size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const
444 if (__pos > size())
446 size_type __rlen = _VSTD::min(__n, size() - __pos);
447 _Traits::copy(__s, data() + __pos, __rlen);
452 basic_string_view substr(size_type __pos = 0, size_type __n = npos) const
454 return __pos > size()
456 : basic_string_view(data() + __pos, _VSTD::min(__n, size() - __pos));
501 size_type find(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
505 (data(), size(), __s.data(), __pos, __s.size());
509 size_type find(_CharT __c, size_type __pos = 0) const _NOEXCEPT
512 (data(), size(), __c, __pos);
516 size_type find(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
520 (data(), size(), __s, __pos, __n);
524 size_type find(const _CharT* __s, size_type __pos = 0) const _NOEXCEPT
528 (data(), size(), __s, __pos, traits_type::length(__s));
533 size_type rfind(basic_string_view __s, size_type __pos = npos) const _NOEXCEPT
537 (data(), size(), __s.data(), __pos, __s.size());
541 size_type rfind(_CharT __c, size_type __pos = npos) const _NOEXCEPT
544 (data(), size(), __c, __pos);
548 size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
552 (data(), size(), __s, __pos, __n);
556 size_type rfind(const _CharT* __s, size_type __pos=npos) const _NOEXCEPT
560 (data(), size(), __s, __pos, traits_type::length(__s));
565 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
569 (data(), size(), __s.data(), __pos, __s.size());
573 size_type find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT
574 { return find(__c, __pos); }
577 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
581 (data(), size(), __s, __pos, __n);
585 size_type find_first_of(const _CharT* __s, size_type __pos=0) const _NOEXCEPT
589 (data(), size(), __s, __pos, traits_type::length(__s));
594 size_type find_last_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
598 (data(), size(), __s.data(), __pos, __s.size());
602 size_type find_last_of(_CharT __c, size_type __pos = npos) const _NOEXCEPT
603 { return rfind(__c, __pos); }
606 size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
610 (data(), size(), __s, __pos, __n);
614 size_type find_last_of(const _CharT* __s, size_type __pos=npos) const _NOEXCEPT
618 (data(), size(), __s, __pos, traits_type::length(__s));
623 size_type find_first_not_of(basic_string_view __s, size_type __pos=0) const _NOEXCEPT
627 (data(), size(), __s.data(), __pos, __s.size());
631 size_type find_first_not_of(_CharT __c, size_type __pos=0) const _NOEXCEPT
634 (data(), size(), __c, __pos);
638 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
642 (data(), size(), __s, __pos, __n);
646 size_type find_first_not_of(const _CharT* __s, size_type __pos=0) const _NOEXCEPT
650 (data(), size(), __s, __pos, traits_type::length(__s));
655 size_type find_last_not_of(basic_string_view __s, size_type __pos=npos) const _NOEXCEPT
659 (data(), size(), __s.data(), __pos, __s.size());
663 size_type find_last_not_of(_CharT __c, size_type __pos=npos) const _NOEXCEPT
666 (data(), size(), __c, __pos);
670 size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT
674 (data(), size(), __s, __pos, __n);
678 size_type find_last_not_of(const _CharT* __s, size_type __pos=npos) const _NOEXCEPT
682 (data(), size(), __s, __pos, traits_type::length(__s));