gcc/libstdc++-v3/include
Paolo Carlini c68cd521fa 2002-01-14 Paolo Carlini <pcarlini@unitus.it>
Nathan Myers  <ncm@cantrip.org>

	* include/bits/basic_string.h
	(replace(__pos, __n1, __s, __n2)): Optimize by avoiding
	temporaries (i.e., call _M_replace_safe) when possible.
	(replace(__pos, __n, __str)): Call replace(__pos, __n1, __s, __n2).
	(replace(__pos, __n1, __s)): Call replace(__pos, __n1, __s , __n2).
	(replace(__i1, __i2, __str)): Call replace(__i1, __i2, __s, __n).
	(replace(__i1, __i2, __s)): Call replace(__i1, __i2, __s, __n).
	(replace(__i1, __i2, __s, __n)): Call replace(__pos1, __n1, __s, __n2).
	* include/bits/basic_string.tcc
	(replace(__pos1, __n1, __str, __pos2, __n2)): Call
	replace(__pos, __n1, __s, __n2).
	* testsuite/21_strings/replace.cc (test03): New testcases.

	* include/bits/basic_string.h (insert(__pos, __s, __n)):
	Adjust comparison wrt overflow.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r48834
2002-01-14 19:04:15 +00:00
..
backward Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
bits 2002-01-14 Paolo Carlini <pcarlini@unitus.it> 2002-01-14 19:04:15 +00:00
c Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
c_shadow stubs.c (sinf,cosf): Implement stubs to enable the equivalent ___builtin__ versions. 2002-01-01 20:50:16 +01:00
c_std Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
ext Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
std Makefile.am (std_headers): Update list with new names. 2002-01-12 00:50:04 +00:00
Makefile.am Makefile.am (std_headers_rename): New variable. 2002-01-13 05:15:24 +00:00
Makefile.in Makefile.am (std_headers_rename): New variable. 2002-01-13 05:15:24 +00:00