Lines Matching refs:__n2
1611 …ize_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos);
1612 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1614 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, value_type __c);
1703 …pe __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos) const;
1706 int compare(size_type __pos1, size_type __n1, const value_type* __s, size_type __n2) const;
2927 …raits, _Allocator>::replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2)
2929 _LIBCPP_ASSERT(__n2 == 0 || __s != nullptr, "string::replace received nullptr");
2935 if (__cap - __sz + __n1 >= __n2)
2938 if (__n1 != __n2)
2943 if (__n1 > __n2)
2945 traits_type::move(__p + __pos, __s, __n2);
2946 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2952 __s += __n2 - __n1;
2957 __s += __n2;
2958 __n2 -= __n1;
2962 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2965 traits_type::move(__p + __pos, __s, __n2);
2967 __sz += __n2 - __n1;
2973 __grow_by_and_replace(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2, __s);
2979 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
2987 if (__cap - __sz + __n1 >= __n2)
2990 if (__n1 != __n2)
2994 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2999 __grow_by(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2);
3002 traits_type::assign(__p + __pos, __n2, __c);
3003 __sz += __n2 - __n1;
3049 size_type __pos2, size_type __n2)
3054 return replace(__pos1, __n1, __str.data() + __pos2, _VSTD::min(__n2, __str_sz - __pos2));
3717 size_type __n2) const
3722 return compare(__pos1, __n1, __str.data() + __pos2, _VSTD::min(__n2,
3749 size_type __n2) const
3751 _LIBCPP_ASSERT(__n2 == 0 || __s != nullptr, "string::compare(): received nullptr");
3753 if (__pos1 > __sz || __n2 == npos)
3756 int __r = traits_type::compare(data() + __pos1, __s, _VSTD::min(__rlen, __n2));
3759 if (__rlen < __n2)
3761 else if (__rlen > __n2)