Paolo Carlini
129e921059
basic_string.h (insert(iterator)): Remove, non-standard and already scheduled for removal.
...
2004-02-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (insert(iterator)): Remove,
non-standard and already scheduled for removal.
From-SVN: r77198
2004-02-03 23:34:52 +00:00
Paolo Carlini
83042fcaec
stl_iterator_base_funcs.h: Minor formatting and indentation tweaks.
...
2004-02-03 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_iterator_base_funcs.h: Minor formatting
and indentation tweaks.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
From-SVN: r77182
2004-02-03 17:59:05 +00:00
Jerry Quinn
06a81b60c2
gslice.h, [...]: Update copyright years.
...
2004-02-02 Jerry Quinn <jlquinn@optonline.net>
* include/bits/gslice.h, include/bits/gslice_array.h,
include/bits/indirect_array.h, include/bits/mask_array.h,
include/bits/slice_array.h, include/bits/stl_numeric.h,
include/std/std_valarray.h: Update copyright years.
From-SVN: r77156
2004-02-03 04:01:15 +00:00
Jerry Quinn
7fb397a4b8
gslice.h (gslice): Document.
...
2004-02-02 Jerry Quinn <jlquinn@optonline.net>
* include/bits/gslice.h (gslice): Document.
* include/bits/gslice_array.h (gslice_array): Document.
* include/bits/indirect_array (indirect_array): Document.
* include/bits/mask_array (mask_array): Document.
* include/bits/slice_array.h (slice,slice_array): Document.
* include/bits/stl_numeric.h (accumulate, inner_product, partial_sum,
adjacent_difference): Document
* include/std/std_valarray.h (valarray): Document.
From-SVN: r77153
2004-02-03 03:33:24 +00:00
Benjamin Kosnik
7f7fb4ef6a
howto.html: Move verbose terminate documentation...
...
2004-02-02 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/19_diagnostics/howto.html: Move verbose terminate
documentation...
* docs/html/18_support/howto.html: Here.
* docs/html/documentation.html: Add reference here.
From-SVN: r77150
2004-02-03 01:26:12 +00:00
Paolo Carlini
9924f721bf
c++locale_internal.h: Remove prototypes of no longer used GLIBC thread locale functions.
...
2004-02-02 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/c++locale_internal.h: Remove prototypes
of no longer used GLIBC thread locale functions.
From-SVN: r77140
2004-02-02 23:45:34 +00:00
Eric Christopher
2ba43229d3
Fix date thinko on prev patch.
...
From-SVN: r77138
2004-02-02 22:50:10 +00:00
Eric Christopher
16dd5cfeb8
[multiple changes]
...
2004-02-02 Eric Christopher <echristo@redhat.com>
Zack Weinberg <zack@codesourcery.com>
* c-opts.c (c_common_handle_option): Add -finput-charset.
* c.opt: Ditto.
* cppcharset.c (one_iso88591_to_utf8): Remove.
(convert_iso88591_utf8): Ditto.
(conversion_tab): Remove 8859-1 converter.
(_cpp_input_to_utf8): Remove.
(_cpp_init_iconv_buffer): Ditto.
(_cpp_close_iconv_buffer): Ditto.
(_cpp_convert_input): New function.
(_cpp_default_encoding): Ditto.
* cpphash.h: Add/remove prototypes for above.
* cppfiles.c (read_file_guts): Use _cpp_convert_input.
* cppinit.c (cpp_create_reader): Use _cpp_default_encoding
for narrow execution and input character sets.
* cpplib.c (cpp_push_buffer): Delete uses of removed functions.
* doc/cppopts.texi: Document -finput-charset.
2004-02-02 Eric Christopher <echristo@redhat.com>
Zack Weinberg <zack@codesourcery.com>
* gcc.c-torture/execute/wchar_t-1.c: Add -finput-charset.
2004-01-29 Eric Christopher <echristo@redhat.com>
Zack Weinberg <zack@codesourcery.com>
* testsuite/22_locale/collate/compare/wchar_t/2.cc: Remove xfail. Use
-finput-charset.
* testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc: Ditto.
* testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc: Ditto
* testsuite/22_locale/collate/hash/wchar_t/2.cc: Ditto.
* testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc: Ditto.
* testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc: Ditto.
* testsuite/22_locale/collate/transform/wchar_t/2.cc: Ditto.
* testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc: Ditto.
* testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
Ditto.
From-SVN: r77136
2004-02-02 20:20:58 +00:00
Paolo Carlini
7c92015149
stl_function.h: Additional minor tweaks.
...
2004-02-02 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Additional minor tweaks.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_queue.h: Minor tweaks.
From-SVN: r77125
2004-02-02 16:35:09 +00:00
Paolo Carlini
dcec0389d1
PR libstdc++/13976 (continued)
...
2004-02-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13976 (continued)
* include/ext/malloc_allocator.h (malloc_allocator::deallocate):
Make the second parameter unnamed, to void unused parameter
warnings.
* include/ext/new_allocator.h (new_allocator::deallocate): Ditto.
From-SVN: r77113
2004-02-02 13:04:36 +00:00
Paolo Carlini
90f8b69248
re PR libstdc++/13976 (ext/new_allocator.h:81: warning: unused parameter '__h')
...
2004-02-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13976
* include/ext/malloc_allocator.h (malloc_allocator::allocate):
Make the second parameter unnamed, to void unused parameter
warnings.
* include/ext/mt_allocator.h (__mt_alloc::allocate): Ditto.
* include/ext/new_allocator.h (new_allocator::allocate): Ditto.
From-SVN: r77111
2004-02-02 12:39:55 +00:00
Paolo Carlini
737ab798c5
stl_algo.h: Additional minor tweaks.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Additional minor tweaks.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_tree.h: Likewise.
From-SVN: r77082
2004-02-01 23:19:55 +00:00
Paolo Carlini
64ebadacc4
vector.tcc (vector::_M_insert_aux(iterator)): Remove, unused.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/vector.tcc (vector::_M_insert_aux(iterator)):
Remove, unused.
From-SVN: r77081
2004-02-01 22:14:43 +00:00
Paolo Carlini
afd4cbbb50
stl_function.h: Additional minor tweaks.
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_function.h: Additional minor tweaks.
From-SVN: r77078
2004-02-01 17:56:06 +00:00
Paolo Carlini
f6592a9e2c
deque.tcc: Wrap overlong lines...
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/deque.tcc: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/list.tcc: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_function.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_iterator_base_funcs.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_set.h: Likewise.
From-SVN: r77077
2004-02-01 17:34:44 +00:00
Paolo Carlini
62e6765158
stl_bvector.h: Wrap overlong lines...
...
2004-02-01 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_bvector.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_tree.h: Likewise.
From-SVN: r77065
2004-02-01 11:25:21 +00:00
Paolo Carlini
8f7ca398ca
stl_algo.h: Minor additional reformat, add copyright year.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Minor additional reformat, add
copyright year.
* include/bits/stl_algobase.h: Add copyright year.
From-SVN: r77058
2004-01-31 23:51:44 +00:00
Paolo Carlini
ffa67767d0
stl_algo.h: Wrap overlong lines...
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algo.h: Wrap overlong lines, constify
a few variables, reformat according to the coding standards.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_heap.h: Likewise.
From-SVN: r77050
2004-01-31 21:37:11 +00:00
Paolo Carlini
8de63ee0d7
basic_string.h (_Rep::operator[]): Remove, unused.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_Rep::operator[]): Remove, unused.
* include/bits/basic_string.h: Fix two comments.
From-SVN: r77044
2004-01-31 17:50:46 +00:00
Per Bothner
af3fb3d6dc
2004-01-31 Per Bothner <per@bothner.com>
...
* include/ext/mt_allocator.h
(__mt_alloc::_S_thread_freelist_mutex): Guard with
__GTHREAD_MUTEX_INIT.
From-SVN: r77042
2004-01-31 17:38:45 +00:00
Paolo Carlini
24f330691d
basic_string.tcc (_Rep::_S_create): Minor tweak.
...
2004-01-31 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_Rep::_S_create): Minor tweak.
From-SVN: r77035
2004-01-31 15:39:52 +00:00
Paolo Carlini
7c960b3dff
6.cc: New.
...
2004-01-30 Paolo Carlini <pcarlini@suse.de>
* testsuite/21_strings/basic_string/cons/char/6.cc: New.
* testsuite/21_strings/basic_string/cons/wchar_t/6.cc: New.
* testsuite/performance/21_strings/string_cons_input_iterator.cc:
New.
From-SVN: r77006
2004-01-30 23:26:13 +00:00
Felix Yen
7b1d1edf99
allocator_thread.cc (do_loop): Don't use clear, but instead assign.
...
2004-01-30 Felix Yen <fwy@alumni.brown.edu>
* testsuite/performance/20_util/allocator_thread.cc (do_loop):
Don't use clear, but instead assign. Use insert.
From-SVN: r76979
2004-01-30 18:14:42 +00:00
Benjamin Kosnik
c9732ce7d5
demangle.cc: Add instantiations.
...
2004-01-30 Benjamin Kosnik <bkoz@redhat.com>
* src/demangle.cc: Add instantiations.
* src/Makefile.am: Remove special rules for demangle.lo, demangle.o.
* src/Makefile.in: Regenerate.
From-SVN: r76978
2004-01-30 17:54:10 +00:00
David Edelsohn
25d244475b
allocator.cc: Protect _S_get_thread_id() and _S_thread_key_destr() with #ifdef __GTHREADS.
...
* src/allocator.cc: Protect _S_get_thread_id() and
_S_thread_key_destr() with #ifdef __GTHREADS.
From-SVN: r76977
2004-01-30 12:45:01 -05:00
Paolo Carlini
33e95e9d04
Reshuffle performance testsuite.
...
2004-01-30 Paolo Carlini <pcarlini@suse.de>
Reshuffle performance testsuite.
* testsuite/performance/allocator.cc, allocator_map_thread.cc,
allocator_thread.cc, complex_norm.cc, container_benchmark.cc,
cout_insert_int.cc, filebuf_copy.cc, filebuf_sputc.cc,
fstream_seek_write.cc, ifstream_extract_float.cc,
ifstream_extract_int.cc, ifstream_getline.cc, is_wchar_t.cc,
list_create_fill_sort.cc, map_create_fill.cc,
narrow_widen_char.cc, narrow_widen_wchar_t.cc,
ofstream_insert_float.cc, ofstream_insert_int.cc,
string_append.cc, wchar_t_in.cc, wchar_t_length.cc,
wchar_t_out.cc: Split into...
* testsuite/performance/20_util/allocator.cc: New.
* testsuite/performance/20_util/allocator_map_thread.cc: New.
* testsuite/performance/20_util/allocator_thread.cc: New.
* testsuite/performance/21_strings/string_append: New.
* testsuite/performance/22_locale/is_wchar_t.cc: New.
* testsuite/performance/22_locale/narrow_widen_char.cc: New.
* testsuite/performance/22_locale/narrow_widen_wchar_t.cc: New.
* testsuite/performance/22_locale/wchar_t_in.cc: New.
* testsuite/performance/22_locale/wchar_t_length.cc: New.
* testsuite/performance/22_locale/wchar_t_out.cc: New.
* testsuite/performance/23_containers/container_benchmark.cc: New.
* testsuite/performance/23_containers/list_create_fill_sort.cc: New.
* testsuite/performance/23_containers/map_create_fill.cc: New.
* testsuite/performance/26_numerics/complex_norm.cc: New.
* testsuite/performance/27_io/cout_insert_int.cc: New.
* testsuite/performance/27_io/filebuf_copy.cc: New.
* testsuite/performance/27_io/filebuf_sputc.cc: New.
* testsuite/performance/27_io/fstream_seek_write.cc: New.
* testsuite/performance/27_io/ifstream_extract_float.cc: New.
* testsuite/performance/27_io/ifstream_extract_int.cc: New.
* testsuite/performance/27_io/ifstream_getline.cc: New.
* testsuite/performance/27_io/ofstream_insert_float.cc: New.
* testsuite/performance/27_io/ofstream_insert_int.cc: New.
From-SVN: r76974
2004-01-30 17:06:42 +00:00
Paolo Carlini
d1615643e5
basic_string.tcc (_Rep::_S_create): Never allocate a string bigger than max_size()...
...
2004-01-30 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_Rep::_S_create):
Never allocate a string bigger than max_size(); always keep
__capacity and __size in sync to avoid memory leaks at
deallocation time.
From-SVN: r76955
2004-01-30 13:23:42 +00:00
Paolo Carlini
690495b0fc
basic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&, input_iterator_tag)): Simplify the double loop, streamline.
...
2004-01-30 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Simplify
the double loop, streamline.
* include/bits/basic_string.tcc: Very minor tweaks.
From-SVN: r76937
2004-01-30 09:58:45 +00:00
Loren J. Rittle
f64f44069c
check_performance: Only compile with $THREAD_FLAG when test is marked to require it.
...
* scripts/check_performance: Only compile with $THREAD_FLAG
when test is marked to require it. Allow multiple
compilations/executions of marked tests.
* testsuite/testsuite_performance.h (report_performance):
Report dynamic thread support status.
(report_header): Likewise.
* testsuite/performance/allocator.cc: Stabilize iteration
count. Support more allocators. Mark each allocator test to
run and report independently.
* testsuite/performance/allocator_map_thread.cc: Likewise.
* testsuite/performance/allocator_thread.cc: Likewise.
From-SVN: r76932
2004-01-30 08:24:27 +00:00
Stephen M. Webb
917a9fd4d5
c_locale.h: Change ::malloc() to new char[].
...
2004-01-29 Stephen M. Webb <stephen.webb@bregmasoft.com>
* config/local/generic/c_locale.h: Change ::malloc() to new char[].
* config/local/gnu/c_locale.h: Change ::malloc() to new char[].
* include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
std::get_temporary_buffer() instead of duplicating its code.
Update to C++STYLE conventions.
* include/std/std_memory.h (get_temporary_buffer): Use ::operator
new() instead of std::malloc().
(return_temporary_buffer): Use ::operator delete() instead of
std::free().
From-SVN: r76922
2004-01-30 03:43:00 +00:00
Benjamin Kosnik
6efc84f476
allocator.h: Temporary switch to new_allocator as the default to unjam bootstraps.
...
2004-01-29 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/allocator.h: Temporary switch to new_allocator as
the default to unjam bootstraps.
From-SVN: r76894
2004-01-29 20:42:42 +00:00
Benjamin Kosnik
ba9d552e03
Makefile.am (bits_headers): Remove allocator_traits.h.
...
2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (bits_headers): Remove allocator_traits.h.
* include/Makefile.in: Regenerate.
* include/bits/allocator_traits.h: Remove.
* include/bits/allocator.h: Remove allocator_traits.h include, and
relevant comments.
(allocator): Empty base class, inherit from the underlying allocator.
* src/allocator-inst.cc: Move __pool_alloc instantiation to...
* src/allocator.cc: ...here. New. For the underlying allocators.
Add __mt_alloc, __pool_alloc, new_allocator, malloc_allocator bits.
* config/linker-map.gnu: Remove __pool_alloc bits.
* src/Makefile.am (sources): Add allocator.cc.
* src/Makefile.in: Regenerate.
* testsuite/20_util/allocator/1.cc: Split second test into...
* testsuite/20_util/allocator/8230.cc: ...this.
* include/bits/stl_bvector.h (__gnu_norm): Change bit_vector
typedef to use std::allocatore. Format.
* include/ext/pool_allocator.h: Remove allocator_traits.h include,
_Alloc_traits.
* include/ext/mt_allocator.h (__gnu_cxx): Qualify
__throw_bad_alloc calls. Don't include <memory>.
* include/ext/malloc_allocator.h: Remove <memory> include.
* include/ext/new_allocator.h (new_allocator): Same.
* include/ext/ropeimpl.h (__gnu_cxx): Remove __alloc using
declaration. Switch __alloc to _Alloc.
* include/ext/hashtable.h: Remove __alloc.
* include/backward/alloc.h: Only inject allocator, not
implementation details.
* include/ext/mt_allocator.h: Replace free with delete.
From-SVN: r76821
2004-01-29 00:18:40 +00:00
Benjamin Kosnik
ff4cf05b3d
globals_io.cc: Change to __gnu_internal namespace.
...
2004-01-28 Benjamin Kosnik <bkoz@redhat.com>
* src/globals_io.cc: Change to __gnu_internal namespace.
* src/globals_locale.cc: Same.
* src/locale_init.cc: Same.
* src/ios_init.cc: Same.
From-SVN: r76810
2004-01-28 21:20:42 +00:00
Stefan Olsson
f15f99a14e
mt_allocator.h: Replaced all malloc() calls with operator new().
...
2004-01-28 Stefan Olsson <stefan@snon.net>
* include/ext/mt_allocator.h: Replaced all malloc() calls with
operator new(). Added support for the env variable
GLIBCXX_FORCE_NEW (this required the _S_init call to be the first
one in allocate() as well). Fix typos.
From-SVN: r76795
2004-01-28 17:50:34 +00:00
Paolo Carlini
234e0d3121
basic_string.h (_S_create(size_t, const _Alloc&): Change signature to take two size_type arguments.
...
2004-01-28 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_S_create(size_t,
const _Alloc&): Change signature to take two size_type
arguments.
* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Update
call, tweak a bit.
(_S_construct(_InIterator, _InIterator, const _Alloc&,
forward_iterator_tag)): Likewise.
(_S_construct(size_type, _CharT, const _Alloc&)): Likewise.
(_M_mutate(size_type, size_type, size_type)): Don't
implement the exponential growth policy, demand it to
_S_create, update call and simplify.
(_M_clone(const _Alloc&, size_type)): Likewise.
(_S_create(size_type, size_type, const _Alloc&)): Implement
the growth policy, simplify otherwise.
* include/bits/basic_string.h (_Rep::operator[]): Tweak
signature to take a size_type, consistently with the other
members.
From-SVN: r76786
2004-01-28 10:37:32 +00:00
Benjamin Kosnik
62b21ea0fc
11584.cc: Correct new and delete declarations, add include and test variable.
...
2004-01-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/27_io/ios_base/storage/11584.cc: Correct new and
delete declarations, add include and test variable.
From-SVN: r76766
2004-01-27 23:41:16 +00:00
Jerry Quinn
0b5634201a
codecvt.h, [...]: Document.
...
2003-01-26 Jerry Quinn <jlquinn@optonline.net>
* include/bits/codecvt.h, include/bits/locale_facets.h,
include/bits/postypes.h, include/bits/stl_bvector.h,
include/bits/stl_multiset.h, include/bits/stl_set.h,
include/bits/stream_iterator.h, include/bits/streambuf_iterator.h,
include/std/std_complex.h: Document.
From-SVN: r76749
2004-01-27 21:07:30 +00:00
Jerry Quinn
2a837cf803
re PR libstdc++/11584 (ios::iword() fails to zero-initialize storage on failure)
...
2004-01-27 Jerry Quinn <jlquinn@optonline.net>
PR libstdc++/11584
* include/bits/ios_base.h (ios_base::_M_grow_words): Add
iword/pword selector.
(ios_base::iword, ios_base::pword): Use it.
* src/ios.cc (ios_base::_M_grow_words): Clear _M_word_zero
iword or pword member on alloc failure.
* testsuite/27_io/ios_base/storage/11584.cc: New test.
From-SVN: r76725
2004-01-27 15:45:43 +00:00
Ulrich Weigand
6e198ee05d
configure.host: Add support for *-tpf.
...
* configure.host: Add support for *-tpf.
* crossconfig.m4: Likewise.
* configure: Regenerate.
* config/os/tpf: New directory.
* config/os/tpf/os_defines.h: New file.
* config/os/tpf/ctype_base.h: Likewise.
* config/os/tpf/ctype_inline.h: Likewise.
* config/os/tpf/ctype_noninline.h: Likewise.
Co-Authored-By: PJ Darcy <darcypj@us.ibm.com>
From-SVN: r76724
2004-01-27 15:36:22 +00:00
Paolo Carlini
51b6facb1a
re PR libstdc++/13884 (Protect sstream.tcc from extern template use)
...
2004-01-27 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13884
* include/bits/sstream.tcc: Guard use of extern template.
From-SVN: r76698
2004-01-27 12:37:37 +00:00
Paolo Carlini
a3af79eab6
basic_string.tcc (basic_string(const basic_string&, size_type, size_type), [...]): Avoid unnecessarily constructing iterators.
...
2004-01-27 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc
(basic_string(const basic_string&, size_type, size_type),
basic_string(const basic_string&, size_type, size_type,
const _Alloc&)): Avoid unnecessarily constructing iterators.
From-SVN: r76696
2004-01-27 10:46:36 +00:00
Paolo Carlini
ba9119ec89
c_locale.cc: Fix throw messages to use the __N marker.
...
2004-01-26 Paolo Carlini <pcarlini@suse.de>
* config/locale/generic/c_locale.cc: Fix throw messages
to use the __N marker.
* config/locale/gnu/c_locale.cc: Likewise.
* config/locale/ieee_1003.1-2001/codecvt_specializations.h:
Likewise.
* docs/html/17_intro/C++STYLE: Likewise.
* include/bits/basic_ios.tcc: Likewise.
* include/bits/fstream.tcc: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/std/std_bitset.h: Likewise.
* src/ios.cc: Likewise.
* src/locale.cc: Likewise.
* src/localename.cc: Likewise.
From-SVN: r76684
2004-01-27 00:49:03 +00:00
Paolo Carlini
0e50667c21
basic_string.h (_M_replace_aux): Use the __N marker in throw message.
...
2004-01-26 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_M_replace_aux): Use the
__N marker in throw message.
* include/bits/basic_string.tcc (assign(const _CharT*,
size_type), insert(size_type, const _CharT*, size_type),
replace(size_type, size_type, const _CharT*, size_type),
reserve, _Rep::_S_create, resize, _M_replace_dispatch):
Likewise.
* include/bits/basic_string.h, include/bits/basic_string.tcc:
Fold overlong lines, minor formatting changes.
From-SVN: r76664
2004-01-26 20:23:20 +00:00
Paolo Carlini
4d39d873e0
basic_string.h (replace(iterator, iterator, const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
...
2004-01-26 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (replace(iterator, iterator,
const basic_string&)): Remove _GLIBCXX_DEBUG_PEDASSERT.
(replace(iterator, iterator, const _CharT*)): Ditto.
(replace(iterator, iterator, const _CharT*, size_type)):
Add missing _GLIBCXX_DEBUG_PEDASSERT.
From-SVN: r76630
2004-01-26 12:58:53 +00:00
Paolo Carlini
2cb612d1b0
basic_string.tcc (replace(size_type, size_type, const _CharT*, size_type)): Implement optimized in-place algorithm for non-overlapping ranges.
...
2004-01-26 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (replace(size_type,
size_type, const _CharT*, size_type)): Implement optimized
in-place algorithm for non-overlapping ranges.
* testsuite/21_strings/basic_string/replace/char/6.cc: New.
* testsuite/21_strings/basic_string/replace/wchar_t/6.cc: New.
* include/bits/basic_string.tcc (insert(size_type,
const _CharT*, size_type)): Tweak slightly.
From-SVN: r76625
2004-01-26 09:07:18 +00:00
Andreas Schwab
f942e78de9
monetary_members.cc: Restore locale before rethrowing exception.
...
* config/locale/gnu/monetary_members.cc: Restore locale before
rethrowing exception.
From-SVN: r76595
2004-01-25 23:31:43 +00:00
Paolo Carlini
91eab3788d
basic_string.h (_M_replace_aux, [...]): Define inline here.
...
2004-01-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (_M_replace_aux, _M_replace_safe):
Define inline here.
* include/bits/basic_string.tcc (_M_replace_aux, _M_replace_safe):
Move inline.
* include/bits/basic_string.tcc: Very minor tweaks.
From-SVN: r76592
2004-01-25 22:43:07 +00:00
Paolo Carlini
9c519c934c
string_append.cc: Increase number of iterations.
...
2004-01-25 Paolo Carlini <pcarlini@suse.de>
* testsuite/performance/string_append.cc: Increase number
of iterations.
From-SVN: r76551
2004-01-25 11:07:50 +00:00
Paolo Carlini
30f315cd16
basic_string.h (erase(size_type, size_type), [...]): Call _M_replace_safe instead, thus avoiding redundant check for length_error.
...
2004-01-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.h (erase(size_type, size_type),
erase(iterator), erase(iterator, iterator)): Call _M_replace_safe
instead, thus avoiding redundant check for length_error.
* include/bits/basic_string.h: Tweak some comments.
From-SVN: r76550
2004-01-25 10:26:46 +00:00
Paolo Carlini
bb9909b0fb
basic_string.tcc (operator+(const _CharT*, const basic_string&)): No need to go through the append taking two iterators.
...
2004-01-24 Paolo Carlini <pcarlini@suse.de>
* include/bits/basic_string.tcc (operator+(const _CharT*,
const basic_string&)): No need to go through the append
taking two iterators.
From-SVN: r76517
2004-01-24 18:54:23 +00:00