Skip to content

Commit

Permalink
2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>
Browse files Browse the repository at this point in the history
	* bits/basic_string.h: Fix up parameter names.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35878 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
bkoz committed Aug 22, 2000
1 parent c00b1b9 commit 9618c52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
4 changes: 4 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2000-08-14 Levente Farkas <lfarkas@mindmaker.hu>

* bits/basic_string.h: Fix up parameter names.

2000-08-22 Brent Verner <brent@rcfile.org>

* src/Makefile.am (INCLUDES): Put $(CSHADOW_INCLUDES) before
Expand Down
36 changes: 18 additions & 18 deletions libstdc++-v3/bits/basic_string.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Components for manipulating sequences of characters -*- C++ -*-

// Copyright (C) 1997-1999 Free Software Foundation, Inc.
// Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
Expand Down Expand Up @@ -278,27 +278,27 @@ namespace std {
// to optimize for the common case of pointers as iterators.
template<class _Iterator>
static void
_S_copy_chars(_CharT* __p, _Iterator __j1, _Iterator __j2)
_S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2)
{
for (; __j1 != __j2; ++__j1, ++__p)
traits_type::assign(*__p, *__j1); //these types are off
for (; __k1 != __k2; ++__k1, ++__p)
traits_type::assign(*__p, *__k1); //these types are off
}

static void
_S_copy_chars(_CharT* __p, iterator __j1, iterator __j2)
{ _S_copy_chars(__p, __j1.base(), __j2.base()); }
_S_copy_chars(_CharT* __p, iterator __k1, iterator __k2)
{ _S_copy_chars(__p, __k1.base(), __k2.base()); }

static void
_S_copy_chars(_CharT* __p, const_iterator __j1, const_iterator __j2)
{ _S_copy_chars(__p, __j1.base(), __j2.base()); }
_S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2)
{ _S_copy_chars(__p, __k1.base(), __k2.base()); }

static void
_S_copy_chars(_CharT* __p, _CharT* __j1, _CharT* __j2)
{ traits_type::copy(__p, __j1, __j2 - __j1); }
_S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2)
{ traits_type::copy(__p, __k1, __k2 - __k1); }

static void
_S_copy_chars(_CharT* __p, const _CharT* __j1, const _CharT* __j2)
{ traits_type::copy(__p, __j1, __j2 - __j1); }
_S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2)
{ traits_type::copy(__p, __k1, __k2 - __k1); }

void
_M_mutate(size_type __pos, size_type __len1, size_type __len2);
Expand Down Expand Up @@ -636,20 +636,20 @@ namespace std {
template<class _InputIterator>
basic_string&
replace(iterator __i1, iterator __i2,
_InputIterator __j1, _InputIterator __j2)
{ return _M_replace(__i1, __i2, __j1, __j2,
_InputIterator __k1, _InputIterator __k2)
{ return _M_replace(__i1, __i2, __k1, __k2,
typename iterator_traits<_InputIterator>::iterator_category()); }

private:
template<class _InputIterator>
basic_string&
_M_replace(iterator __i1, iterator __i2, _InputIterator __j1,
_InputIterator __j2, input_iterator_tag);
_M_replace(iterator __i1, iterator __i2, _InputIterator __k1,
_InputIterator __k2, input_iterator_tag);

template<class _FwdIterator>
basic_string&
_M_replace(iterator __i1, iterator __i2, _FwdIterator __j1,
_FwdIterator __j2, forward_iterator_tag);
_M_replace(iterator __i1, iterator __i2, _FwdIterator __k1,
_FwdIterator __k2, forward_iterator_tag);

// _S_construct_aux is used to implement the 21.3.1 para 15 which
// requires special behaviour if _InIter is an integral type
Expand Down

0 comments on commit 9618c52

Please sign in to comment.