Lines Matching refs:__pos

867     basic_string(const basic_string& __str, size_type __pos, size_type __n,
870 basic_string(const basic_string& __str, size_type __pos,
875 basic_string(const _Tp& __t, size_type __pos, size_type __n,
999 const_reference operator[](size_type __pos) const _NOEXCEPT;
1000 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 reference operator[](size_type __pos) _NOEXCEP…
1046 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& append(const basic_string& __str, size_type __pos, siz…
1056 append(const _Tp& __t, size_type __pos, size_type __n=npos);
1115 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& assign(const basic_string& __str, size_type __pos, siz…
1124 assign(const _Tp & __t, size_type __pos, size_type __n=npos);
1172 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& insert(size_type __pos, const value_type* __s, size_ty…
1173 _LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& insert(size_type __pos, const value_type* __s);
1174 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& insert(size_type __pos, size_type __n, value_type __c);
1175 _LIBCPP_CONSTEXPR_AFTER_CXX17 iterator insert(const_iterator __pos, value_type __c);
1177 iterator insert(const_iterator __pos, size_type __n, value_type __c);
1185 insert(const_iterator __pos, _InputIterator __first, _InputIterator __last);
1193 insert(const_iterator __pos, _ForwardIterator __first, _ForwardIterator __last);
1196 iterator insert(const_iterator __pos, initializer_list<value_type> __il)
1197 {return insert(__pos, __il.begin(), __il.end());}
1200 _LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& erase(size_type __pos = 0, size_type __n = npos);
1202 iterator erase(const_iterator __pos);
1228 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1229 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& replace(size_type __pos, size_type __n1, const value_t…
1230 …_LIBCPP_CONSTEXPR_AFTER_CXX17 basic_string& replace(size_type __pos, size_type __n1, size_type __n…
1263 …_LIBCPP_CONSTEXPR_AFTER_CXX17 size_type copy(value_type* __s, size_type __n, size_type __pos = 0) …
1265 basic_string substr(size_type __pos = 0, size_type __n = npos) const;
1289 size_type find(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1298 find(const _Tp& __t, size_type __pos = 0) const _NOEXCEPT;
1300 size_type find(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1302 size_type find(const value_type* __s, size_type __pos = 0) const _NOEXCEPT;
1303 … _LIBCPP_CONSTEXPR_AFTER_CXX17 size_type find(value_type __c, size_type __pos = 0) const _NOEXCEPT;
1306 size_type rfind(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1315 rfind(const _Tp& __t, size_type __pos = npos) const _NOEXCEPT;
1317 size_type rfind(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1319 size_type rfind(const value_type* __s, size_type __pos = npos) const _NOEXCEPT;
1320 …_LIBCPP_CONSTEXPR_AFTER_CXX17 size_type rfind(value_type __c, size_type __pos = npos) const _NOEXC…
1323 size_type find_first_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1332 find_first_of(const _Tp& __t, size_type __pos = 0) const _NOEXCEPT;
1334 size_type find_first_of(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1336 size_type find_first_of(const value_type* __s, size_type __pos = 0) const _NOEXCEPT;
1338 size_type find_first_of(value_type __c, size_type __pos = 0) const _NOEXCEPT;
1341 size_type find_last_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1350 find_last_of(const _Tp& __t, size_type __pos = npos) const _NOEXCEPT;
1352 size_type find_last_of(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1354 size_type find_last_of(const value_type* __s, size_type __pos = npos) const _NOEXCEPT;
1356 size_type find_last_of(value_type __c, size_type __pos = npos) const _NOEXCEPT;
1359 size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const _NOEXCEPT;
1368 find_first_not_of(const _Tp &__t, size_type __pos = 0) const _NOEXCEPT;
1370 …size_type find_first_not_of(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1372 size_type find_first_not_of(const value_type* __s, size_type __pos = 0) const _NOEXCEPT;
1374 size_type find_first_not_of(value_type __c, size_type __pos = 0) const _NOEXCEPT;
1377 size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const _NOEXCEPT;
1386 find_last_not_of(const _Tp& __t, size_type __pos = npos) const _NOEXCEPT;
1388 … size_type find_last_not_of(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT;
1390 size_type find_last_not_of(const value_type* __s, size_type __pos = npos) const _NOEXCEPT;
1392 size_type find_last_not_of(value_type __c, size_type __pos = npos) const _NOEXCEPT;
1695 void __erase_to_end(size_type __pos);
1699 _LIBCPP_CONSTEXPR_AFTER_CXX17 void __erase_external_with_move(size_type __pos, size_type __n);
1868 basic_string<_CharT, _Traits, _Allocator>::__invalidate_iterators_past(size_type __pos)
1875 const_pointer __new_last = __get_pointer() + __pos;
1891 (void)__pos;
2149 size_type __pos, size_type __n,
2154 if (__pos > __str_sz)
2156 __init(__str.data() + __pos, std::min(__n, __str_sz - __pos));
2162 basic_string<_CharT, _Traits, _Allocator>::basic_string(const basic_string& __str, size_type __pos,
2167 if (__pos > __str_sz)
2169 __init(__str.data() + __pos, __str_sz - __pos);
2177 const _Tp& __t, size_type __pos, size_type __n, const allocator_type& __a)
2181 __self_view __sv = __sv0.substr(__pos, __n);
2624 basic_string<_CharT, _Traits, _Allocator>::assign(const basic_string& __str, size_type __pos, size_…
2627 if (__pos > __sz)
2629 return assign(__str.data() + __pos, std::min(__n, __sz - __pos));
2641 basic_string<_CharT, _Traits, _Allocator>::assign(const _Tp & __t, size_type __pos, size_type __n)
2645 if (__pos > __sz)
2647 return assign(__sv.data() + __pos, std::min(__n, __sz - __pos));
2818 basic_string<_CharT, _Traits, _Allocator>::append(const basic_string& __str, size_type __pos, size_…
2821 if (__pos > __sz)
2823 return append(__str.data() + __pos, std::min(__n, __sz - __pos));
2834 basic_string<_CharT, _Traits, _Allocator>::append(const _Tp & __t, size_type __pos, size_type __n)
2838 if (__pos > __sz)
2840 return append(__sv.data() + __pos, std::min(__n, __sz - __pos));
2857 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s, size_type…
2861 if (__pos > __sz)
2866 __grow_by_and_replace(__cap, 0, __sz, __pos, 0, __n, __s);
2868 __grow_by_and_replace(__cap, __sz + __n - __cap, __sz, __pos, 0, __n, __s);
2876 size_type __n_move = __sz - __pos;
2879 if (__p + __pos <= __s && __s < __p + __sz)
2881 traits_type::move(__p + __pos + __n, __p + __pos, __n_move);
2883 traits_type::move(__p + __pos, __s, __n);
2890 __grow_by_and_replace(__cap, __sz + __n - __cap, __sz, __pos, 0, __n, __s);
2897 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, size_type __n, value_type __c)
2900 if (__pos > __sz)
2909 size_type __n_move = __sz - __pos;
2911 traits_type::move(__p + __pos + __n, __p + __pos, __n_move);
2915 __grow_by(__cap, __sz + __n - __cap, __sz, __pos, 0, __n);
2918 traits_type::assign(__p + __pos, __n, __c);
2934 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _InputIterator __first, _In…
2936 _LIBCPP_DEBUG_ASSERT(__get_const_db()->__find_c_from_i(&__pos) == this,
2940 return insert(__pos, __temp.data(), __temp.data() + __temp.size());
2951 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, _ForwardIterator __first, _…
2953 _LIBCPP_DEBUG_ASSERT(__get_const_db()->__find_c_from_i(&__pos) == this,
2956 size_type __ip = static_cast<size_type>(__pos - begin());
3013 basic_string<_CharT, _Traits, _Allocator>::insert(size_type __pos, const value_type* __s)
3016 return insert(__pos, __s, traits_type::length(__s));
3022 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, value_type __c)
3024 _LIBCPP_DEBUG_ASSERT(__get_const_db()->__find_c_from_i(&__pos) == this,
3028 size_type __ip = static_cast<size_type>(__pos - begin());
3053 basic_string<_CharT, _Traits, _Allocator>::insert(const_iterator __pos, size_type __n, value_type _…
3055 _LIBCPP_DEBUG_ASSERT(__get_const_db()->__find_c_from_i(&__pos) == this,
3058 difference_type __p = __pos - begin();
3068 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
3073 if (__pos > __sz)
3075 __n1 = std::min(__n1, __sz - __pos);
3080 __grow_by_and_replace(__cap, 0, __sz, __pos, __n1, __n2, __s);
3086 size_type __n_move = __sz - __pos - __n1;
3091 traits_type::move(__p + __pos, __s, __n2);
3092 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3095 if (__p + __pos < __s && __s < __p + __sz)
3097 if (__p + __pos + __n1 <= __s)
3099 else // __p + __pos < __s < __p + __pos + __n1
3101 traits_type::move(__p + __pos, __s, __n1);
3102 __pos += __n1;
3108 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3111 traits_type::move(__p + __pos, __s, __n2);
3115 __grow_by_and_replace(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2, __s);
3122 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
3125 if (__pos > __sz)
3127 __n1 = std::min(__n1, __sz - __pos);
3135 size_type __n_move = __sz - __pos - __n1;
3137 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3142 __grow_by(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2);
3145 traits_type::assign(__p + __pos, __n2, __c);
3205 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
3208 return replace(__pos, __n1, __s, traits_type::length(__s));
3247 // Does not check __pos against size()
3252 size_type __pos, size_type __n)
3258 __n = std::min(__n, __sz - __pos);
3259 size_type __n_move = __sz - __pos - __n;
3261 traits_type::move(__p + __pos, __p + __pos + __n, __n_move);
3269 basic_string<_CharT, _Traits, _Allocator>::erase(size_type __pos,
3271 if (__pos > size())
3274 __erase_to_end(__pos);
3276 __erase_external_with_move(__pos, __n);
3284 basic_string<_CharT, _Traits, _Allocator>::erase(const_iterator __pos)
3286 _LIBCPP_DEBUG_ASSERT(__get_const_db()->__find_c_from_i(&__pos) == this,
3290 …_LIBCPP_ASSERT(__pos != end(), "string::erase(iterator) called with a non-dereferenceable iterator…
3292 size_type __r = static_cast<size_type>(__pos - __b);
3343 basic_string<_CharT, _Traits, _Allocator>::__erase_to_end(size_type __pos)
3345 __null_terminate_at(std::__to_address(__get_pointer()), __pos);
3484 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos) const _NOEXCEPT
3486 _LIBCPP_ASSERT(__pos <= size(), "string index out of bounds");
3487 return *(data() + __pos);
3493 basic_string<_CharT, _Traits, _Allocator>::operator[](size_type __pos) _NOEXCEPT
3495 _LIBCPP_ASSERT(__pos <= size(), "string index out of bounds");
3496 return *(__get_pointer() + __pos);
3558 basic_string<_CharT, _Traits, _Allocator>::copy(value_type* __s, size_type __n, size_type __pos) co…
3561 if (__pos > __sz)
3563 size_type __rlen = std::min(__n, __sz - __pos);
3564 traits_type::copy(__s, data() + __pos, __rlen);
3571 basic_string<_CharT, _Traits, _Allocator>::substr(size_type __pos, size_type __n) const
3573 return basic_string(*this, __pos, __n, __alloc());
3616 size_type __pos,
3621 (data(), size(), __s, __pos, __n);
3628 size_type __pos) const _NOEXCEPT
3631 (data(), size(), __str.data(), __pos, __str.size());
3643 size_type __pos) const _NOEXCEPT
3647 (data(), size(), __sv.data(), __pos, __sv.size());
3654 size_type __pos) const _NOEXCEPT
3658 (data(), size(), __s, __pos, traits_type::length(__s));
3665 size_type __pos) const _NOEXCEPT
3668 (data(), size(), __c, __pos);
3677 size_type __pos,
3682 (data(), size(), __s, __pos, __n);
3689 size_type __pos) const _NOEXCEPT
3692 (data(), size(), __str.data(), __pos, __str.size());
3704 size_type __pos) const _NOEXCEPT
3708 (data(), size(), __sv.data(), __pos, __sv.size());
3715 size_type __pos) const _NOEXCEPT
3719 (data(), size(), __s, __pos, traits_type::length(__s));
3726 size_type __pos) const _NOEXCEPT
3729 (data(), size(), __c, __pos);
3738 size_type __pos,
3743 (data(), size(), __s, __pos, __n);
3750 size_type __pos) const _NOEXCEPT
3753 (data(), size(), __str.data(), __pos, __str.size());
3765 size_type __pos) const _NOEXCEPT
3769 (data(), size(), __sv.data(), __pos, __sv.size());
3776 size_type __pos) const _NOEXCEPT
3780 (data(), size(), __s, __pos, traits_type::length(__s));
3787 size_type __pos) const _NOEXCEPT
3789 return find(__c, __pos);
3798 size_type __pos,
3803 (data(), size(), __s, __pos, __n);
3810 size_type __pos) const _NOEXCEPT
3813 (data(), size(), __str.data(), __pos, __str.size());
3825 size_type __pos) const _NOEXCEPT
3829 (data(), size(), __sv.data(), __pos, __sv.size());
3836 size_type __pos) const _NOEXCEPT
3840 (data(), size(), __s, __pos, traits_type::length(__s));
3847 size_type __pos) const _NOEXCEPT
3849 return rfind(__c, __pos);
3858 size_type __pos,
3863 (data(), size(), __s, __pos, __n);
3870 size_type __pos) const _NOEXCEPT
3873 (data(), size(), __str.data(), __pos, __str.size());
3885 size_type __pos) const _NOEXCEPT
3889 (data(), size(), __sv.data(), __pos, __sv.size());
3896 size_type __pos) const _NOEXCEPT
3900 (data(), size(), __s, __pos, traits_type::length(__s));
3907 size_type __pos) const _NOEXCEPT
3910 (data(), size(), __c, __pos);
3919 size_type __pos,
3924 (data(), size(), __s, __pos, __n);
3931 size_type __pos) const _NOEXCEPT
3934 (data(), size(), __str.data(), __pos, __str.size());
3946 size_type __pos) const _NOEXCEPT
3950 (data(), size(), __sv.data(), __pos, __sv.size());
3957 size_type __pos) const _NOEXCEPT
3961 (data(), size(), __s, __pos, traits_type::length(__s));
3968 size_type __pos) const _NOEXCEPT
3971 (data(), size(), __c, __pos);