Public Types | Public Member Functions | List of all members
basic_string< _CharT, _Traits, _Allocator > Class Template Reference

A template that has many of the capabilities of std::basic_string. More...

#include <basic_string.h>

Inheritance diagram for basic_string< _CharT, _Traits, _Allocator >:

Public Types

typedef _Traits traits_type
 
typedef traits_type::char_type value_type
 
typedef _Allocator allocator_type
 
typedef allocator_type::size_type size_type
 
typedef
allocator_type::difference_type 
difference_type
 
typedef allocator_type::reference reference
 
typedef
allocator_type::const_reference 
const_reference
 
typedef allocator_type::pointer pointer
 
typedef
allocator_type::const_pointer 
const_pointer
 
typedef
BC__RW::__rw_debug_iter
< basic_string, pointer,
pointer
iterator
 
typedef
BC__RW::__rw_debug_iter
< basic_string, const_pointer,
pointer
const_iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 

Public Member Functions

iterator _C_make_iter (const pointer &__ptr)
 
const_iterator _C_make_iter (const const_pointer &__ptr) const
 
 _RWSTD_STATIC_CONST (size_type, npos=size_type(_RWSTD_SIZE_MAX))
 
 basic_string (const allocator_type &__alloc=allocator_type())
 
 basic_string (const basic_string &)
 
 basic_string (const basic_string &, size_type, size_type=npos, const allocator_type &=allocator_type())
 
 basic_string (const_pointer, size_type, const allocator_type &=allocator_type())
 
 basic_string (const_pointer, const allocator_type &=allocator_type())
 
 basic_string (size_type, value_type, const allocator_type &=allocator_type())
 
template<class _InputIter >
 basic_string (_InputIter __first, _InputIter __last, const allocator_type &__alloc=allocator_type())
 
 basic_string (const_pointer, const_pointer, const allocator_type &_RWSTD_REDECLARED_DEFAULT(allocator_type()))
 
 ~basic_string ()
 
basic_stringoperator= (const basic_string &)
 
basic_stringoperator= (const_pointer __s)
 
basic_stringoperator= (value_type __c)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type length () const
 
size_type max_size () const
 
void resize (size_type, value_type)
 
void resize (size_type __n)
 
size_type capacity () const
 
void reserve (size_type=0)
 
void clear ()
 
bool empty () const
 
const_reference operator[] (size_type) const
 
reference operator[] (size_type)
 
const_reference at (size_type) const
 
reference at (size_type)
 
basic_stringoperator+= (const basic_string &__s)
 
basic_stringoperator+= (const_pointer __s)
 
basic_stringoperator+= (value_type __c)
 
basic_stringappend (const basic_string &, size_type, size_type)
 
basic_stringappend (const basic_string &__str)
 
basic_stringappend (const_pointer, size_type)
 
basic_stringappend (const_pointer __s)
 
template<class _InputIter >
basic_stringappend (_InputIter __first, _InputIter __last)
 
template<class _InputIter >
basic_stringappend (_InputIter __first, _InputIter __last, void *)
 
basic_stringappend (size_type __n, value_type __c, int)
 
basic_stringappend (size_type, value_type)
 
void push_back (value_type)
 
basic_stringassign (const basic_string &__str)
 
basic_stringassign (const basic_string &, size_type, size_type)
 
basic_stringassign (const_pointer __s, size_type __n)
 
basic_stringassign (const_pointer __s)
 
template<class _InputIter >
basic_stringassign (_InputIter __first, _InputIter __last)
 
template<class _InputIter >
basic_stringassign (_InputIter __first, _InputIter __last, void *)
 
basic_stringassign (size_type __n, value_type __c, int)
 
basic_stringassign (size_type __n, value_type __c)
 
basic_stringinsert (size_type, const basic_string &)
 
basic_stringinsert (size_type, const basic_string &, size_type, size_type)
 
basic_stringinsert (size_type __pos, const_pointer __s, size_type __n)
 
basic_stringinsert (size_type __pos, const_pointer __s)
 
iterator insert (iterator __pos, value_type __c)
 
template<class _InputIter >
void insert (iterator __p, _InputIter __first, _InputIter __last)
 
template<class _InputIter >
void insert (iterator __p, _InputIter __first, _InputIter __last, void *)
 
void insert (iterator __p, size_type __n, value_type __c, int)
 
void insert (iterator __p, const_pointer __first, const_pointer __last, void *)
 
void insert (iterator __p, const_iterator __first, const_iterator __last, void *)
 
void insert (iterator __p, iterator __first, iterator __last, void *)
 
void insert (iterator __it, size_type __n, value_type __c)
 
basic_stringinsert (size_type __pos, size_type __n, value_type __c)
 
basic_stringerase (size_type=0, size_type=npos)
 
iterator erase (iterator __it)
 
iterator erase (iterator __first, iterator __last)
 
basic_stringreplace (size_type __pos, size_type __n, const basic_string &__s)
 
basic_stringreplace (size_type, size_type, const basic_string &, size_type, size_type)
 
basic_stringreplace (size_type, size_type, const_pointer, size_type)
 
basic_stringreplace (size_type __pos, size_type __n, const_pointer __s)
 
basic_stringreplace (size_type, size_type, size_type, value_type)
 
basic_stringreplace (iterator __first, iterator __last, const basic_string &__str)
 
basic_stringreplace (iterator __first, iterator __last, const_pointer __s, size_type __n)
 
basic_stringreplace (iterator __first, iterator __last, const_pointer __s)
 
basic_stringreplace (iterator __first, iterator __last, size_type __n, value_type __c)
 
template<class _InputIter >
basic_stringreplace (iterator __first1, iterator __last1, _InputIter __first2, _InputIter __last2, void *)
 
basic_stringreplace (iterator __first, iterator __last, size_type __n, value_type __c, int)
 
template<class _InputIter >
basic_stringreplace (iterator __first1, iterator __last1, _InputIter __first2, _InputIter __last2)
 
size_type copy (pointer, size_type, size_type=0) const
 
basic_string copy () const
 
void swap (basic_string &__s)
 
const_pointer c_str () const
 
const_pointer data () const
 
allocator_type get_allocator () const
 
size_type find (const basic_string &__str, size_type __pos=0) const
 
size_type find (const_pointer, size_type, size_type) const
 
size_type find (const_pointer __s, size_type __pos=0) const
 
size_type find (value_type, size_type=0) const
 
size_type rfind (const basic_string &__str, size_type __pos=npos) const
 
size_type rfind (const_pointer, size_type, size_type) const
 
size_type rfind (const_pointer __s, size_type __pos=npos) const
 
size_type rfind (value_type __c, size_type __pos=npos) const
 
size_type find_first_of (const basic_string &__str, size_type __pos=0) const
 
size_type find_first_of (const_pointer, size_type, size_type) const
 
size_type find_first_of (const_pointer __s, size_type __pos=0) const
 
size_type find_first_of (value_type __c, size_type __pos=0) const
 
size_type find_last_of (const basic_string &__str, size_type __pos=npos) const
 
size_type find_last_of (const_pointer, size_type, size_type) const
 
size_type find_last_of (const_pointer __s, size_type __pos=npos) const
 
size_type find_last_of (value_type __c, size_type __pos=npos) const
 
size_type find_first_not_of (const basic_string &__str, size_type __pos=0) const
 
size_type find_first_not_of (const_pointer, size_type, size_type) const
 
size_type find_first_not_of (const_pointer __s, size_type __pos=0) const
 
size_type find_first_not_of (value_type __c, size_type __pos=0) const
 
size_type find_last_not_of (const basic_string &__str, size_type __pos=npos) const
 
size_type find_last_not_of (const_pointer, size_type, size_type) const
 
size_type find_last_not_of (const_pointer __s, size_type __pos=npos) const
 
size_type find_last_not_of (value_type __c, size_type __pos=npos) const
 
basic_string substr (size_type=0, size_type=npos) const
 
int compare (const basic_string &__str) const
 
int compare (size_type __pos, size_type __n, const basic_string &__str) const
 
int compare (size_type, size_type, const basic_string &, size_type, size_type) const
 
int compare (const_pointer __s) const
 
int compare (size_type __pos, size_type __n, const_pointer __s) const
 
int compare (size_type, size_type, const_pointer, size_type) const
 

Detailed Description

template<class _CharT, class _Traits, class _Allocator>
class basic_string< _CharT, _Traits, _Allocator >

A template that has many of the capabilities of std::basic_string.

Member Typedef Documentation

typedef _Allocator allocator_type
typedef BC__RW::__rw_debug_iter<basic_string, const_pointer, pointer> const_iterator
typedef allocator_type::const_pointer const_pointer
typedef allocator_type::const_reference const_reference
typedef std::reverse_iterator<const_iterator> const_reverse_iterator
typedef allocator_type::difference_type difference_type
typedef BC__RW::__rw_debug_iter<basic_string, pointer, pointer> iterator
typedef allocator_type::pointer pointer
typedef allocator_type::reference reference
typedef std::reverse_iterator<iterator> reverse_iterator
typedef allocator_type::size_type size_type
typedef _Traits traits_type
typedef traits_type::char_type value_type

Constructor & Destructor Documentation

basic_string ( const allocator_type __alloc = allocator_type ())
explicit
basic_string ( const basic_string< _CharT, _Traits, _Allocator > &  )
basic_string ( const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type  = npos,
const allocator_type = allocator_type() 
)
basic_string ( _InputIter  __first,
_InputIter  __last,
const allocator_type __alloc = allocator_type () 
)
basic_string ( const_pointer  ,
const_pointer  ,
const allocator_type _RWSTD_REDECLARED_DEFAULTallocator_type() 
)

Member Function Documentation

iterator _C_make_iter ( const pointer __ptr)
const_iterator _C_make_iter ( const const_pointer __ptr) const
_RWSTD_STATIC_CONST ( size_type  ,
npos  = size_type(_RWSTD_SIZE_MAX) 
)
basic_string& append ( const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type   
)
basic_string& append ( const basic_string< _CharT, _Traits, _Allocator > &  __str)
basic_string& append ( const_pointer  ,
size_type   
)
basic_string& append ( const_pointer  __s)
basic_string& append ( _InputIter  __first,
_InputIter  __last 
)
basic_string& append ( _InputIter  __first,
_InputIter  __last,
void *   
)
basic_string& append ( size_type  __n,
value_type  __c,
int   
)
basic_string& append ( size_type  ,
value_type   
)
basic_string& assign ( const basic_string< _CharT, _Traits, _Allocator > &  __str)
basic_string& assign ( const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type   
)
basic_string& assign ( const_pointer  __s,
size_type  __n 
)
basic_string& assign ( const_pointer  __s)
basic_string& assign ( _InputIter  __first,
_InputIter  __last 
)
basic_string& assign ( _InputIter  __first,
_InputIter  __last,
void *   
)
basic_string& assign ( size_type  __n,
value_type  __c,
int   
)
basic_string& assign ( size_type  __n,
value_type  __c 
)
const_reference at ( size_type  ) const
reference at ( size_type  )
iterator begin ( )
const_iterator begin ( ) const
const_pointer c_str ( ) const
size_type capacity ( ) const
void clear ( )
int compare ( const basic_string< _CharT, _Traits, _Allocator > &  __str) const
int compare ( size_type  __pos,
size_type  __n,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
) const
int compare ( size_type  ,
size_type  ,
const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type   
) const
int compare ( const_pointer  __s) const
int compare ( size_type  __pos,
size_type  __n,
const_pointer  __s 
) const
int compare ( size_type  ,
size_type  ,
const_pointer  ,
size_type   
) const
size_type copy ( pointer  ,
size_type  ,
size_type  = 0 
) const
basic_string copy ( ) const
const_pointer data ( ) const
bool empty ( ) const
iterator end ( )
const_iterator end ( ) const
basic_string& erase ( size_type  = 0,
size_type  = npos 
)
iterator erase ( iterator  __it)
iterator erase ( iterator  __first,
iterator  __last 
)
size_type find ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const
size_type find ( const_pointer  ,
size_type  ,
size_type   
) const
size_type find ( const_pointer  __s,
size_type  __pos = 0 
) const
size_type find ( value_type  ,
size_type  = 0 
) const
size_type find_first_not_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const
size_type find_first_not_of ( const_pointer  ,
size_type  ,
size_type   
) const
size_type find_first_not_of ( const_pointer  __s,
size_type  __pos = 0 
) const
size_type find_first_not_of ( value_type  __c,
size_type  __pos = 0 
) const
size_type find_first_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = 0 
) const
size_type find_first_of ( const_pointer  ,
size_type  ,
size_type   
) const
size_type find_first_of ( const_pointer  __s,
size_type  __pos = 0 
) const
size_type find_first_of ( value_type  __c,
size_type  __pos = 0 
) const
size_type find_last_not_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = npos 
) const
size_type find_last_not_of ( const_pointer  ,
size_type  ,
size_type   
) const
size_type find_last_not_of ( const_pointer  __s,
size_type  __pos = npos 
) const
size_type find_last_not_of ( value_type  __c,
size_type  __pos = npos 
) const
size_type find_last_of ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = npos 
) const
size_type find_last_of ( const_pointer  ,
size_type  ,
size_type   
) const
size_type find_last_of ( const_pointer  __s,
size_type  __pos = npos 
) const
size_type find_last_of ( value_type  __c,
size_type  __pos = npos 
) const
allocator_type get_allocator ( ) const
basic_string& insert ( size_type  ,
const basic_string< _CharT, _Traits, _Allocator > &   
)
basic_string& insert ( size_type  ,
const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type   
)
basic_string& insert ( size_type  __pos,
const_pointer  __s,
size_type  __n 
)
basic_string& insert ( size_type  __pos,
const_pointer  __s 
)
iterator insert ( iterator  __pos,
value_type  __c 
)
void insert ( iterator  __p,
_InputIter  __first,
_InputIter  __last 
)
void insert ( iterator  __p,
_InputIter  __first,
_InputIter  __last,
void *   
)
void insert ( iterator  __p,
size_type  __n,
value_type  __c,
int   
)
void insert ( iterator  __p,
const_pointer  __first,
const_pointer  __last,
void *   
)
void insert ( iterator  __p,
const_iterator  __first,
const_iterator  __last,
void *   
)
void insert ( iterator  __p,
iterator  __first,
iterator  __last,
void *   
)
void insert ( iterator  __it,
size_type  __n,
value_type  __c 
)
basic_string& insert ( size_type  __pos,
size_type  __n,
value_type  __c 
)
size_type length ( ) const
size_type max_size ( ) const
basic_string& operator+= ( const basic_string< _CharT, _Traits, _Allocator > &  __s)
basic_string& operator+= ( const_pointer  __s)
basic_string& operator+= ( value_type  __c)
basic_string& operator= ( const basic_string< _CharT, _Traits, _Allocator > &  )
basic_string& operator= ( const_pointer  __s)
basic_string& operator= ( value_type  __c)
const_reference operator[] ( size_type  ) const
reference operator[] ( size_type  )
void push_back ( value_type  )
reverse_iterator rbegin ( )
const_reverse_iterator rbegin ( ) const
reverse_iterator rend ( )
const_reverse_iterator rend ( ) const
basic_string& replace ( size_type  __pos,
size_type  __n,
const basic_string< _CharT, _Traits, _Allocator > &  __s 
)
basic_string& replace ( size_type  ,
size_type  ,
const basic_string< _CharT, _Traits, _Allocator > &  ,
size_type  ,
size_type   
)
basic_string& replace ( size_type  ,
size_type  ,
const_pointer  ,
size_type   
)
basic_string& replace ( size_type  __pos,
size_type  __n,
const_pointer  __s 
)
basic_string& replace ( size_type  ,
size_type  ,
size_type  ,
value_type   
)
basic_string& replace ( iterator  __first,
iterator  __last,
const basic_string< _CharT, _Traits, _Allocator > &  __str 
)
basic_string& replace ( iterator  __first,
iterator  __last,
const_pointer  __s,
size_type  __n 
)
basic_string& replace ( iterator  __first,
iterator  __last,
const_pointer  __s 
)
basic_string& replace ( iterator  __first,
iterator  __last,
size_type  __n,
value_type  __c 
)
basic_string& replace ( iterator  __first1,
iterator  __last1,
_InputIter  __first2,
_InputIter  __last2,
void *   
)
basic_string& replace ( iterator  __first,
iterator  __last,
size_type  __n,
value_type  __c,
int   
)
basic_string& replace ( iterator  __first1,
iterator  __last1,
_InputIter  __first2,
_InputIter  __last2 
)
void reserve ( size_type  = 0)
void resize ( size_type  ,
value_type   
)
void resize ( size_type  __n)
size_type rfind ( const basic_string< _CharT, _Traits, _Allocator > &  __str,
size_type  __pos = npos 
) const
size_type rfind ( const_pointer  ,
size_type  ,
size_type   
) const
size_type rfind ( const_pointer  __s,
size_type  __pos = npos 
) const
size_type rfind ( value_type  __c,
size_type  __pos = npos 
) const
size_type size ( ) const
basic_string substr ( size_type  = 0,
size_type  = npos 
) const
void swap ( basic_string< _CharT, _Traits, _Allocator > &  __s)

The documentation for this class was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.