gcc/libstdc++-v3/include/bits
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
..
basic_file.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
basic_ios.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
basic_ios.tcc
basic_string.h 2002-01-14 Paolo Carlini <pcarlini@unitus.it> 2002-01-14 19:04:15 +00:00
basic_string.tcc 2002-01-14 Paolo Carlini <pcarlini@unitus.it> 2002-01-14 19:04:15 +00:00
boost_concept_check.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
c++config Daily bump. 2002-01-14 08:16:28 +00:00
char_traits.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
codecvt.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
concept_check.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
cpp_type_traits.h acconfig.h: Update comments. 2001-11-02 22:31:03 +00:00
fpos.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
fstream.tcc [multiple changes] 2002-01-08 19:57:01 +00:00
functexcept.h
generic_shadow.h
gslice_array.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
gslice.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
indirect_array.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
ios_base.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
istream.tcc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
locale_facets.h locale_facets.h (num_get<>): Return advanced iterator for _M_extract_float and _M_extract_int 2002-01-11 05:07:22 +00:00
locale_facets.tcc locale_facets.tcc (money_put::do_put(string): Correct output iterator value. 2002-01-13 04:27:18 +00:00
localefwd.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
mask_array.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
ostream.tcc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
pthread_allocimpl.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
slice_array.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
slice.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
sstream.tcc Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl_algo.h re PR libstdc++/2054 (g++-3 rejects legal code, accepted by g++-2.95.2 (functors)) 2002-01-03 04:44:07 +00:00
stl_algobase.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl_alloc.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl_bvector.h stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version. 2001-12-31 16:16:17 +00:00
stl_construct.h Makefile.am (doxygen-maint): The script isn't executable in CVS. 2001-11-24 03:28:27 +00:00
stl_deque.h stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version. 2001-12-31 16:16:17 +00:00
stl_function.h stl_function.h: Remove two lines of comments; adjust copyright years. 2002-01-06 09:14:15 +00:00
stl_heap.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_iterator_base_funcs.h stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version. 2001-12-31 16:16:17 +00:00
stl_iterator_base_types.h Intro.3: New 'Allocators' module. 2001-12-19 21:57:43 +00:00
stl_iterator.h insert_iterator.cc (test02): Add. 2001-12-26 21:56:17 +00:00
stl_list.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_map.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_multimap.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_multiset.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_numeric.h stl_numeric.h (power + helpers, iota): Move to... 2002-01-03 19:02:18 +00:00
stl_pair.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_pthread_alloc.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_queue.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_raw_storage_iter.h Intro.3: New 'Allocators' module. 2001-12-19 21:57:43 +00:00
stl_relops.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
stl_set.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_stack.h std_bitset.h: Use GLIBCPP in multiple-inclusion guard. 2001-12-06 20:29:31 +00:00
stl_tempbuf.h stl_tree.h (rb_tree): Move to... 2002-01-04 17:02:28 +00:00
stl_threads.h [multiple changes] 2001-12-04 20:13:41 +00:00
stl_tree.h stl_tree.h (rb_tree): Move to... 2002-01-04 17:02:28 +00:00
stl_uninitialized.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
stl_vector.h stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version. 2001-12-31 16:16:17 +00:00
stream_iterator.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
streambuf_iterator.h Numeric facets cleanup. 2001-11-28 04:07:11 +00:00
streambuf.tcc [multiple changes] 2001-10-26 05:32:06 +00:00
stringfwd.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00
type_traits.h acconfig.h: Update comments. 2001-11-02 22:31:03 +00:00
valarray_array.h Makefile.am (std_headers): Remove cXXX from list. 2002-01-04 21:27:36 +00:00
valarray_array.tcc
valarray_meta.h c_io_stdio.h: Correct grammar in comments. 2001-11-02 17:38:11 +00:00