Lines Matching refs:__n1
1604 replace(size_type __pos1, size_type __n1, const basic_string& __str) {
1605 return replace(__pos1, __n1, __str.data(), __str.size());
1610 replace(size_type __pos1, size_type __n1, const _Tp& __t) {
1612 return replace(__pos1, __n1, __sv.data(), __sv.size());
1616 …replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type _…
1623 …replace(size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2 = npos);
1626 replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1627 …_LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& replace(size_type __pos, size_type __n1, const value_t…
1628 …_LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string& replace(size_type __pos, size_type __n1, size_type __n…
1804 compare(size_type __pos1, size_type __n1, const _Tp& __t) const;
1807 compare(size_type __pos1, size_type __n1, const basic_string& __str) const;
1809 …compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type _…
1816 …compare(size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2 = npos)…
1819 …_LIBCPP_CONSTEXPR_SINCE_CXX20 int compare(size_type __pos1, size_type __n1, const value_type* __s)…
1821 compare(size_type __pos1, size_type __n1, const value_type* __s, size_type __n2) const;
3118 size_type __pos, size_type __n1, const value_type* __s, size_type __n2)
3124 __n1 = std::min(__n1, __sz - __pos);
3126 if (__cap - __sz + __n1 >= __n2) {
3128 if (__n1 != __n2) {
3129 if (__n2 > __n1)
3130 __annotate_increase(__n2 - __n1);
3131 size_type __n_move = __sz - __pos - __n1;
3133 if (__n1 > __n2) {
3135 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3136 return __null_terminate_at(__p, __sz + (__n2 - __n1));
3139 if (__p + __pos + __n1 <= __s)
3140 __s += __n2 - __n1;
3141 else // __p + __pos < __s < __p + __pos + __n1
3143 traits_type::move(__p + __pos, __s, __n1);
3144 __pos += __n1;
3146 __n2 -= __n1;
3147 __n1 = 0;
3150 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3154 return __null_terminate_at(__p, __sz + (__n2 - __n1));
3156 __grow_by_and_replace(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2, __s);
3162 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
3166 __n1 = std::min(__n1, __sz - __pos);
3169 if (__cap - __sz + __n1 >= __n2) {
3171 if (__n1 != __n2) {
3172 if (__n2 > __n1)
3173 __annotate_increase(__n2 - __n1);
3174 size_type __n_move = __sz - __pos - __n1;
3176 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
3179 __grow_by_without_replace(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2);
3183 return __null_terminate_at(__p, __sz - (__n1 - __n2));
3198 size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2) {
3202 return replace(__pos1, __n1, __str.data() + __pos2, std::min(__n2, __str_sz - __pos2));
3212 size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2) {
3217 return replace(__pos1, __n1, __sv.data() + __pos2, std::min(__n2, __str_sz - __pos2));
3222 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, const value_typ…
3224 return replace(__pos, __n1, __s, traits_type::length(__s));
3730 size_type __pos1, size_type __n1, const value_type* __s, size_type __n2) const {
3735 size_type __rlen = std::min(__n1, __sz - __pos1);
3749 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1, size_type __n1, const _Tp& __t…
3751 return compare(__pos1, __n1, __sv.data(), __sv.size());
3756 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1, size_type __n1, const basic_st…
3757 return compare(__pos1, __n1, __str.data(), __str.size());
3766 size_type __pos1, size_type __n1, const _Tp& __t, size_type __pos2, size_type __n2) const {
3768 return __self_view(*this).substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2));
3773 …size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2) con…
3774 return compare(__pos1, __n1, __self_view(__str), __pos2, __n2);
3786 basic_string<_CharT, _Traits, _Allocator>::compare(size_type __pos1, size_type __n1, const value_ty…
3788 return compare(__pos1, __n1, __s, traits_type::length(__s));