Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
std::basic_string Class Template Reference
#include <basic_string.h>
List of all members.
Public Types
Public Methods
Static Public Attributes
template<typename _CharT, typename _Traits, typename _Alloc> class std::basic_string
Member Typedef Documentation
typedef _Traits traits_type
typedef _Traits::char_type value_type
typedef
_Alloc
allocator_type
typedef _Alloc::size_type size_type
typedef _Alloc::difference_type difference_type
typedef _Alloc::reference reference
typedef _Alloc::const_reference const_reference
typedef _Alloc::pointer pointer
typedef _Alloc::const_pointer const_pointer
typedef
__normal_iterator
<
pointer
, basic_string> iterator
typedef
__normal_iterator
<
const_pointer
, basic_string> const_iterator
typedef
reverse_iterator
<
const_iterator
> const_reverse_iterator
typedef reverse_iterator<
iterator
> reverse_iterator
Constructor & Destructor Documentation
basic_string (
)
[inline]
basic_string (
const
_Alloc
&
__a
)
[explicit]
basic_string (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
basic_string (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
,
size_type
__n
=
npos
)
basic_string (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
,
size_type
__n
,
const
_Alloc
&
__a
)
basic_string (
const _CharT *
__s
,
size_type
__n
,
const
_Alloc
&
__a
=
_Alloc
() )
basic_string (
const _CharT *
__s
,
const
_Alloc
&
__a
=
_Alloc
() )
basic_string (
size_type
__n
,
_CharT
__c
,
const
_Alloc
&
__a
=
_Alloc
() )
basic_string (
_InputIterator
__begin
,
_InputIterator
__end
,
const
_Alloc
&
__a
=
_Alloc
() )
~basic_string (
)
[inline]
Member Function Documentation
basic_string & operator= (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
[inline]
basic_string & operator= (
const _CharT *
__s
)
[inline]
basic_string & operator= (
_CharT
__c
)
[inline]
iterator
begin (
)
[inline]
const_iterator
begin (
) const
[inline]
iterator
end (
)
[inline]
const_iterator
end (
) const
[inline]
reverse_iterator
rbegin (
)
[inline]
const_reverse_iterator
rbegin (
) const
[inline]
reverse_iterator
rend (
)
[inline]
const_reverse_iterator
rend (
) const
[inline]
size_type
size (
) const
[inline]
size_type
length (
) const
[inline]
size_type
max_size (
) const
[inline]
void resize (
size_type
__n
,
_CharT
__c
)
void resize (
size_type
__n
)
[inline]
size_type
capacity (
) const
[inline]
void reserve (
size_type
__res_arg
= 0 )
void clear (
)
[inline]
bool empty (
) const
[inline]
const_reference
operator[] (
size_type
__pos
) const
[inline]
reference
operator[] (
size_type
__pos
)
[inline]
const_reference
at (
size_type
__n
) const
[inline]
reference
at (
size_type
__n
)
[inline]
basic_string & operator+= (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
[inline]
basic_string & operator+= (
const _CharT *
__s
)
[inline]
basic_string & operator+= (
_CharT
__c
)
[inline]
basic_string& append (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
basic_string& append (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
,
size_type
__n
)
basic_string& append (
const _CharT *
__s
,
size_type
__n
)
basic_string & append (
const _CharT *
__s
)
[inline]
basic_string& append (
size_type
__n
,
_CharT
__c
)
basic_string & append (
_InputIterator
__first
,
_InputIterator
__last
)
[inline]
void push_back (
_CharT
__c
)
[inline]
basic_string& assign (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
basic_string & assign (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
,
size_type
__n
)
[inline]
basic_string & assign (
const _CharT *
__s
,
size_type
__n
)
[inline]
basic_string & assign (
const _CharT *
__s
)
[inline]
basic_string & assign (
size_type
__n
,
_CharT
__c
)
[inline]
basic_string & assign (
_InputIterator
__first
,
_InputIterator
__last
)
[inline]
void insert (
iterator
__p
,
size_type
__n
,
_CharT
__c
)
[inline]
void insert (
iterator
__p
,
_InputIterator
__beg
,
_InputIterator
__end
)
[inline]
basic_string & insert (
size_type
__pos1
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
[inline]
basic_string & insert (
size_type
__pos1
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos2
,
size_type
__n
)
[inline]
basic_string & insert (
size_type
__pos
,
const _CharT *
__s
,
size_type
__n
)
[inline]
basic_string & insert (
size_type
__pos
,
const _CharT *
__s
)
[inline]
basic_string & insert (
size_type
__pos
,
size_type
__n
,
_CharT
__c
)
[inline]
iterator
insert (
iterator
__p
,
_CharT
__c
= _CharT() )
[inline]
basic_string & erase (
size_type
__pos
= 0,
size_type
__n
=
npos
)
[inline]
iterator
erase (
iterator
__position
)
[inline]
iterator
erase (
iterator
__first
,
iterator
__last
)
[inline]
basic_string & replace (
size_type
__pos
,
size_type
__n
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
[inline]
basic_string& replace (
size_type
__pos1
,
size_type
__n1
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos2
,
size_type
__n2
)
basic_string & replace (
size_type
__pos
,
size_type
__n1
,
const _CharT *
__s
,
size_type
__n2
)
[inline]
basic_string & replace (
size_type
__pos
,
size_type
__n1
,
const _CharT *
__s
)
[inline]
basic_string & replace (
size_type
__pos
,
size_type
__n1
,
size_type
__n2
,
_CharT
__c
)
[inline]
basic_string & replace (
iterator
__i1
,
iterator
__i2
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
)
[inline]
basic_string & replace (
iterator
__i1
,
iterator
__i2
,
const _CharT *
__s
,
size_type
__n
)
[inline]
basic_string & replace (
iterator
__i1
,
iterator
__i2
,
const _CharT *
__s
)
[inline]
basic_string& replace (
iterator
__i1
,
iterator
__i2
,
size_type
__n
,
_CharT
__c
)
basic_string & replace (
iterator
__i1
,
iterator
__i2
,
_InputIterator
__k1
,
_InputIterator
__k2
)
[inline]
size_type
copy (
_CharT *
__s
,
size_type
__n
,
size_type
__pos
= 0 ) const
void swap (
basic_string< _CharT, _Traits,
_Alloc
> &
__s
)
const _CharT * c_str (
) const
[inline]
const _CharT * data (
) const
[inline]
allocator_type
get_allocator (
) const
[inline]
size_type
find (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
find (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
= 0 ) const
[inline]
size_type
find (
const _CharT *
__s
,
size_type
__pos
= 0 ) const
[inline]
size_type
find (
_CharT
__c
,
size_type
__pos
= 0 ) const
size_type
rfind (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
=
npos
) const
[inline]
size_type
rfind (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
rfind (
const _CharT *
__s
,
size_type
__pos
=
npos
) const
[inline]
size_type
rfind (
_CharT
__c
,
size_type
__pos
=
npos
) const
size_type
find_first_of (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
= 0 ) const
[inline]
size_type
find_first_of (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
find_first_of (
const _CharT *
__s
,
size_type
__pos
= 0 ) const
[inline]
size_type
find_first_of (
_CharT
__c
,
size_type
__pos
= 0 ) const
[inline]
size_type
find_last_of (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
=
npos
) const
[inline]
size_type
find_last_of (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
find_last_of (
const _CharT *
__s
,
size_type
__pos
=
npos
) const
[inline]
size_type
find_last_of (
_CharT
__c
,
size_type
__pos
=
npos
) const
[inline]
size_type
find_first_not_of (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
= 0 ) const
[inline]
size_type
find_first_not_of (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
find_first_not_of (
const _CharT *
__s
,
size_type
__pos
= 0 ) const
[inline]
size_type
find_first_not_of (
_CharT
__c
,
size_type
__pos
= 0 ) const
size_type
find_last_not_of (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos
=
npos
) const
[inline]
size_type
find_last_not_of (
const _CharT *
__s
,
size_type
__pos
,
size_type
__n
) const
size_type
find_last_not_of (
const _CharT *
__s
,
size_type
__pos
=
npos
) const
[inline]
size_type
find_last_not_of (
_CharT
__c
,
size_type
__pos
=
npos
) const
basic_string substr (
size_type
__pos
= 0,
size_type
__n
=
npos
) const
[inline]
int compare (
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
) const
[inline]
int compare (
size_type
__pos
,
size_type
__n
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
) const
int compare (
size_type
__pos1
,
size_type
__n1
,
const basic_string<_CharT, _Traits,
_Alloc
> &
__str
,
size_type
__pos2
,
size_type
__n2
) const
int compare (
const _CharT *
__s
) const
int compare (
size_type
__pos
,
size_type
__n1
,
const _CharT *
__s
,
size_type
__n2
=
npos
) const
Member Data Documentation
const
size_type
npos = static_cast<
size_type
>(-1)
[static]
The documentation for this class was generated from the following file:
basic_string.h
Generated at Fri Apr 6 15:54:33 2001 for libstdc++ by
1.2.6 written by
Dimitri van Heesch
, © 1997-2001