gcc/libstdc++-v3/testsuite/21_strings
Paolo Carlini bf95248579 basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.
2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

	* include/bits/basic_string.h (insert(__pos, __s, __n)):
	Optimize by avoiding temporaries and working in-place when possible.
	(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
	(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
	* testsuite/21_strings/insert.cc (test02): New testcases.

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

From-SVN: r48345
2001-12-28 14:00:18 +00:00
..
append.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
assign.cc assign.cc (test01): Add tests. 2001-12-16 20:21:20 +00:00
c_strings.cc c_strings.cc (test01, test02): Increase `carray' size. 2001-09-26 01:45:49 +00:00
capacity.cc re PR libstdc++/4548 (When reserving a string to become smaller, program crashes) 2001-11-21 22:04:53 +00:00
char_traits_requirements.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
char_traits_typedefs.cc char_traits.cc: Move to ... 2001-02-16 23:58:28 +00:00
compare.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
ctor_copy_dtor.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
element_access.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
find.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
insert.cc basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible. 2001-12-28 14:00:18 +00:00
inserters_extractors.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
invariants.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
nonmember.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
operations.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
replace.cc basic_string.h: Tweaks. 2001-10-31 08:27:20 +00:00
rfind.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00
substr.cc acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls... 2001-08-07 03:38:33 +00:00