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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config | Loading commit data... | |
docs | Loading commit data... | |
include | Loading commit data... | |
libio | Loading commit data... | |
libmath | Loading commit data... | |
libsupc++ | Loading commit data... | |
po | Loading commit data... | |
src | Loading commit data... | |
testsuite | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog-2000 | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
acconfig.h | Loading commit data... | |
acinclude.m4 | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
config.h.in | Loading commit data... | |
configure | Loading commit data... | |
configure.host | Loading commit data... | |
configure.in | Loading commit data... | |
configure.target | Loading commit data... | |
mkcheck.in | Loading commit data... | |
mkcshadow | Loading commit data... | |
mkinclosure | Loading commit data... | |
testsuite_flags.in | Loading commit data... |