Lines Matching refs:__n2
1530 …ize_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos);
1531 basic_string& replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2);
1533 basic_string& replace(size_type __pos, size_type __n1, size_type __n2, value_type __c);
1622 …pe __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2=npos) const;
1625 int compare(size_type __pos1, size_type __n1, const value_type* __s, size_type __n2) const;
2846 …raits, _Allocator>::replace(size_type __pos, size_type __n1, const value_type* __s, size_type __n2)
2848 _LIBCPP_ASSERT(__n2 == 0 || __s != nullptr, "string::replace recieved nullptr");
2854 if (__cap - __sz + __n1 >= __n2)
2857 if (__n1 != __n2)
2862 if (__n1 > __n2)
2864 traits_type::move(__p + __pos, __s, __n2);
2865 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2871 __s += __n2 - __n1;
2876 __s += __n2;
2877 __n2 -= __n1;
2881 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2884 traits_type::move(__p + __pos, __s, __n2);
2886 __sz += __n2 - __n1;
2892 __grow_by_and_replace(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2, __s);
2898 basic_string<_CharT, _Traits, _Allocator>::replace(size_type __pos, size_type __n1, size_type __n2,…
2906 if (__cap - __sz + __n1 >= __n2)
2909 if (__n1 != __n2)
2913 traits_type::move(__p + __pos + __n2, __p + __pos + __n1, __n_move);
2918 __grow_by(__cap, __sz - __n1 + __n2 - __cap, __sz, __pos, __n1, __n2);
2921 traits_type::assign(__p + __pos, __n2, __c);
2922 __sz += __n2 - __n1;
2968 size_type __pos2, size_type __n2)
2973 return replace(__pos1, __n1, __str.data() + __pos2, _VSTD::min(__n2, __str_sz - __pos2));
3670 size_type __n2) const
3675 return compare(__pos1, __n1, __str.data() + __pos2, _VSTD::min(__n2,
3702 size_type __n2) const
3704 _LIBCPP_ASSERT(__n2 == 0 || __s != nullptr, "string::compare(): recieved nullptr");
3706 if (__pos1 > __sz || __n2 == npos)
3709 int __r = traits_type::compare(data() + __pos1, __s, _VSTD::min(__rlen, __n2));
3712 if (__rlen < __n2)
3714 else if (__rlen > __n2)