Name |
Last commit
|
Last update |
---|---|---|
.. | ||
append | ||
assign | ||
capacity | ||
compare | ||
cons | ||
element_access | ||
find | ||
insert | ||
inserters_extractors | ||
operations | ||
operators | ||
replace | ||
rfind | ||
substr |
2004-10-25 Paolo Carlini <pcarlini@suse.de> * include/bits/basic_string.h (_Rep::_M_is_safe, _M_check_length, _M_move, _M_copy, _M_assign): New, use througout. (operator+=(_CharT)): Define in terms of push_back. (append(const basic_string&)): Define here, inline, and simplify, don't use the full _M_replace_safe. (append(size_type, _CharT)): Likewise, don't use _M_replace_aux. (push_back): Likewise. (assign(const basic_string&)): Define here, inline. * include/bits/basic_string.tcc (append(const _CharT* s, size_type): Fix: when s points inside the _Rep, upon reallocation (reserve) we were copying from deallocated memory. (append(const basic_string&, size_type, size_type)): Simplify, don't use _M_replace_safe. (replace(size_type, size_type, const _CharT*, size_type)): Slightly tweak. (reserve): Likewise. * testsuite/21_strings/basic_string/append/char/2.cc: New. * testsuite/21_strings/basic_string/append/char/3.cc: Likewise. * testsuite/21_strings/basic_string/append/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string/append/wchar_t/3.cc: Likewise. * testsuite/21_strings/basic_string/assign/char/3.cc: Remove junk. * testsuite/21_strings/basic_string/assign/wchar_t/3.cc: Likewise. From-SVN: r89526
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
append | Loading commit data... | |
assign | Loading commit data... | |
capacity | Loading commit data... | |
compare | Loading commit data... | |
cons | Loading commit data... | |
element_access | Loading commit data... | |
find | Loading commit data... | |
insert | Loading commit data... | |
inserters_extractors | Loading commit data... | |
operations | Loading commit data... | |
operators | Loading commit data... | |
replace | Loading commit data... | |
rfind | Loading commit data... | |
substr | Loading commit data... |