basic_string Class Reference

class basic_string : protected _STLP_PRIV _String_base

Inherits from

Public Member Functions
basic_string (const allocator_type &)
basic_string ( _Reserve_t , size_t , const allocator_type &)
basic_string (const _Self &)
basic_string (const _Self &, size_type , size_type , const allocator_type &)
basic_string (const _CharT *, size_type , const allocator_type &)
basic_string (const _CharT *, const allocator_type &)
basic_string ( size_type , _CharT, const allocator_type &)
basic_string ( __move_source < _Self >)
basic_string (_InputIterator, _InputIterator, const allocator_type &__a)
basic_string (const _CharT *, const _CharT *, const allocator_type &__a)
~basic_string ()
int _STLP_CALL _M_compare (const _CharT *, const _CharT *, const _CharT *, const _CharT *)
_Self & _M_replaceT ( iterator , iterator , _InputIter, _InputIter, const input_iterator_tag &)
_Self & _M_replaceT ( iterator , iterator , _ForwardIter, _ForwardIter, const forward_iterator_tag &)
_Self & _M_replace_aux ( iterator , iterator , _RandomIter, _RandomIter, __true_type const &)
_Self & _M_replace_aux ( iterator , iterator , _InputIter, _InputIter, __false_type const &)
_Self & _M_replace_dispatch ( iterator , iterator , _Integer, _Integer, const __true_type &)
_Self & _M_replace_dispatch ( iterator , iterator , _InputIter, _InputIter, const __false_type &)
_Self & append (_InputIter, _InputIter)
_Self & append (const _CharT *, const _CharT *)
_Self & append (const _Self &)
_Self & append (const _Self &, size_type , size_type )
_Self & append (const _CharT *, size_type )
_Self & append (const _CharT *)
_Self & append ( size_type , _CharT)
_Self & assign (const _Self &)
_Self & assign (const _Self &, size_type , size_type )
_Self & assign (const _CharT *, size_type )
_Self & assign (const _CharT *)
_Self & assign ( size_type , _CharT)
_Self & assign (_InputIter, _InputIter)
_Self & assign (const _CharT *, const _CharT *)
const_reference at ( size_type )
reference at ( size_type )
iterator begin ()
const_iterator begin ()
const _CharT * c_str ()
size_type capacity ()
void clear ()
int compare (const _Self &)
int compare ( size_type , size_type , const _Self &)
int compare ( size_type , size_type , const _Self &, size_type , size_type )
int compare (const _CharT *)
int compare ( size_type , size_type , const _CharT *)
int compare ( size_type , size_type , const _CharT *, size_type )
size_type copy (_CharT *, size_type , size_type )
const _CharT * data ()
bool empty ()
iterator end ()
const_iterator end ()
_Self & erase ( size_type , size_type )
iterator erase ( iterator )
iterator erase ( iterator , iterator )
size_type find (const _Self &, size_type )
size_type find (const _CharT *, size_type )
size_type find (const _CharT *, size_type , size_type )
size_type find (_CharT)
size_type find (_CharT, size_type )
size_type find_first_not_of (const _Self &, size_type )
size_type find_first_not_of (const _CharT *, size_type )
size_type find_first_not_of (const _CharT *, size_type , size_type )
size_type find_first_not_of (_CharT, size_type )
size_type find_first_of (const _Self &, size_type )
size_type find_first_of (const _CharT *, size_type )
size_type find_first_of (const _CharT *, size_type , size_type )
size_type find_first_of (_CharT, size_type )
size_type find_last_not_of (const _Self &, size_type )
size_type find_last_not_of (const _CharT *, size_type )
size_type find_last_not_of (const _CharT *, size_type , size_type )
size_type find_last_not_of (_CharT, size_type )
size_type find_last_of (const _Self &, size_type )
size_type find_last_of (const _CharT *, size_type )
size_type find_last_of (const _CharT *, size_type , size_type )
size_type find_last_of (_CharT, size_type )
allocator_type get_allocator ()
_Self & insert ( size_type , const _Self &)
_Self & insert ( size_type , const _Self &, size_type , size_type )
_Self & insert ( size_type , const _CharT *, size_type )
_Self & insert ( size_type , const _CharT *)
_Self & insert ( size_type , size_type , _CharT)
iterator insert ( iterator , _CharT)
void insert ( iterator , size_t , _CharT)
void insert ( iterator , _InputIter, _InputIter)
void insert ( iterator , const _CharT *, const _CharT *)
size_type length ()
size_t max_size ()
_Self & operator+= (const _Self &)
_Self & operator+= (const _CharT *)
_Self & operator+= (_CharT)
_Self & operator= (const _Self &)
_Self & operator= (const _CharT *)
_Self & operator= (_CharT)
const_reference operator[] ( size_type )
reference operator[] ( size_type )
void pop_back ()
void push_back (_CharT)
reverse_iterator rbegin ()
const_reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rend ()
_Self & replace ( size_type , size_type , const _Self &)
_Self & replace ( size_type , size_type , const _Self &, size_type , size_type )
_Self & replace ( size_type , size_type , const _CharT *, size_type )
_Self & replace ( size_type , size_type , const _CharT *)
_Self & replace ( size_type , size_type , size_type , _CharT)
_Self & replace ( iterator , iterator , const _Self &)
_Self & replace ( iterator , iterator , const _CharT *, size_type )
_Self & replace ( iterator , iterator , const _CharT *)
_Self & replace ( iterator , iterator , size_type , _CharT)
_Self & replace ( iterator , iterator , _InputIter, _InputIter)
_Self & replace ( iterator , iterator , const _CharT *, const _CharT *)
void reserve ( size_type )
void resize ( size_type , _CharT)
void resize ( size_type )
size_type rfind (const _Self &, size_type )
size_type rfind (const _CharT *, size_type )
size_type rfind (const _CharT *, size_type , size_type )
size_type rfind (_CharT, size_type )
size_type size ()
_Self substr ( size_type , size_type )
void swap ( _Self &)
Protected Member Functions
_Self & _M_append (const _CharT *, const _CharT *)
_Self & _M_assign (const _CharT *, const _CharT *)
void _M_construct_null (_CharT *)
void _M_construct_null_aux (_CharT *, const __false_type &)
void _M_construct_null_aux (_CharT *, const __true_type &)
void _M_copy (const _CharT *, const _CharT *, _CharT *)
void _M_copyT (_InputIterator, _InputIterator, pointer )
void _M_copyT (const _CharT *, const _CharT *, _CharT *)
void _M_force_construct_null (_CharT *, const __true_type &)
void _M_force_construct_null (_CharT *, const __false_type &)
void _M_force_terminate_string (const __true_type &)
void _M_force_terminate_string (const __false_type &)
void _M_insert ( iterator , const _CharT *, const _CharT *, bool)
void _M_insertT ( iterator , _InputIter, _InputIter, const input_iterator_tag &)
void _M_insertT ( iterator , _ForwardIter, _ForwardIter, const forward_iterator_tag &)
pointer _M_insert_aux ( pointer , _CharT)
void _M_insert_aux ( iterator , _RandomIter, _RandomIter, const __true_type &)
void _M_insert_aux ( iterator , _InputIter, _InputIter, const __false_type &)
void _M_insert_dispatch ( iterator , _Integer, _Integer, const __true_type &)
void _M_insert_dispatch ( iterator , _InputIter, _InputIter, const __false_type &)
void _M_insert_overflow ( iterator , _ForwardIter, _ForwardIter, difference_type )
bool _M_inside (const _CharT *)
void _M_move (const _CharT *, const _CharT *, _CharT *)
_CharT _STLP_CALL _M_null ()
void _M_range_initialize (const _CharT *, const _CharT *)
_Self & _M_replace ( iterator , iterator , const _CharT *, const _CharT *, bool)
void _M_terminate_string ()
void _M_terminate_string_aux (const __false_type &)
void _M_terminate_string_aux (const __true_type &)
Private Member Functions
_Self & _M_appendT (_InputIter, _InputIter, const input_iterator_tag &)
_Self & _M_appendT (_ForwardIter, _ForwardIter, const forward_iterator_tag &)
_Self & _M_append_dispatch (_Integer, _Integer, const __true_type &)
_Self & _M_append_dispatch (_InputIter, _InputIter, const __false_type &)
_Self & _M_assign_dispatch (_Integer, _Integer, const __true_type &)
_Self & _M_assign_dispatch (_InputIter, _InputIter, const __false_type &)
void _M_initialize_dispatch (_Integer, _Integer, const __true_type &)
void _M_initialize_dispatch (_InputIter, _InputIter, const __false_type &)
void _M_range_initialize (_InputIter, _InputIter, const input_iterator_tag &)
void _M_range_initialize (_ForwardIter, _ForwardIter, const forward_iterator_tag &)
void _M_range_initializeT (_InputIter, _InputIter)
Public Member Type Definitions
typedef random_access_iterator_tag _Iterator_category
typedef _String_reserve_t _Reserve_t
typedef _Base::allocator_type allocator_type
typedef const value_type * const_iterator
typedef const value_type * const_pointer
typedef const value_type & const_reference
typedef ptrdiff_t difference_type
typedef value_type * iterator
typedef value_type * pointer
typedef value_type & reference
typedef _Base::size_type size_type
typedef _Traits traits_type
typedef _CharT value_type
Protected Member Type Definitions
typedef _STLP_PRIV _String_base < _CharT, _Alloc > _Base
typedef _IsIntegral < _CharT >::_Ret _Char_Is_Integral
typedef _IsPOD < _CharT >::_Type _Char_Is_POD
typedef basic_string < _CharT, _Traits, _Alloc > _Self
typedef random_access_iterator_tag r_a_i_t
Public Attributes
_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS
const size_t npos

Constructor & Destructor Documentation

basic_string(const allocator_type &)

basic_string ( const allocator_type & __a =  allocator_type () ) [inline, explicit]

Parameters

const allocator_type & __a =  allocator_type ()

basic_string(_Reserve_t, size_t, const allocator_type &)

basic_string ( _Reserve_t ,
size_t __n,
const allocator_type & __a =  allocator_type ()
) [inline]

basic_string(const _Self &)

basic_string ( const _Self & )

Parameters

const _Self &

basic_string(const _Self &, size_type, size_type, const allocator_type &)

basic_string ( const _Self & __s,
size_type __pos,
size_type __n =  npos ,
const allocator_type & __a =  allocator_type ()
) [inline]

Parameters

const _Self & __s
size_type __pos
size_type __n =  npos
const allocator_type & __a =  allocator_type ()

basic_string(const _CharT *, size_type, const allocator_type &)

basic_string ( const _CharT * __s,
size_type __n,
const allocator_type & __a =  allocator_type ()
) [inline]

Parameters

const _CharT * __s
size_type __n
const allocator_type & __a =  allocator_type ()

basic_string(const _CharT *, const allocator_type &)

basic_string ( const _CharT * __s,
const allocator_type & __a =  allocator_type ()
)

Parameters

const _CharT * __s
const allocator_type & __a =  allocator_type ()

basic_string(size_type, _CharT, const allocator_type &)

basic_string ( size_type __n,
_CharT __c,
const allocator_type & __a =  allocator_type ()
) [inline]

Parameters

size_type __n
_CharT __c
const allocator_type & __a =  allocator_type ()

basic_string(__move_source< _Self >)

basic_string ( __move_source < _Self > src ) [inline]

Parameters

__move_source < _Self > src

basic_string(_InputIterator, _InputIterator, const allocator_type &__a)

basic_string ( _InputIterator __f,
_InputIterator __l,
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL
) [inline]

Parameters

_InputIterator __f
_InputIterator __l
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL

basic_string(const _CharT *, const _CharT *, const allocator_type &__a)

basic_string ( const _CharT * __f,
const _CharT * __l,
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL
) [inline]

Parameters

const _CharT * __f
const _CharT * __l
const allocator_type &__a _STLP_ALLOCATOR_TYPE_DFL

~basic_string()

~basic_string ( ) [inline]

Member Functions Documentation

_M_append(const _CharT *, const _CharT *)

_Self & _M_append ( const _CharT * __first,
const _CharT * __last
) [protected]

Parameters

const _CharT * __first
const _CharT * __last

_M_appendT(_InputIter, _InputIter, const input_iterator_tag &)

_Self & _M_appendT ( _InputIter __first,
_InputIter __last,
const input_iterator_tag &
) [private, inline]

Parameters

_InputIter __first
_InputIter __last
const input_iterator_tag &

_M_appendT(_ForwardIter, _ForwardIter, const forward_iterator_tag &)

_Self & _M_appendT ( _ForwardIter __first,
_ForwardIter __last,
const forward_iterator_tag &
) [private, inline]

Parameters

_ForwardIter __first
_ForwardIter __last
const forward_iterator_tag &

_M_append_dispatch(_Integer, _Integer, const __true_type &)

_Self & _M_append_dispatch ( _Integer __n,
_Integer __x,
const __true_type &
) [private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_append_dispatch(_InputIter, _InputIter, const __false_type &)

_Self & _M_append_dispatch ( _InputIter __f,
_InputIter __l,
const __false_type &
) [private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_assign(const _CharT *, const _CharT *)

_Self & _M_assign ( const _CharT * __f,
const _CharT * __l
) [protected]

Parameters

const _CharT * __f
const _CharT * __l

_M_assign_dispatch(_Integer, _Integer, const __true_type &)

_Self & _M_assign_dispatch ( _Integer __n,
_Integer __x,
const __true_type &
) [private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_assign_dispatch(_InputIter, _InputIter, const __false_type &)

_Self & _M_assign_dispatch ( _InputIter __f,
_InputIter __l,
const __false_type &
) [private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_compare(const _CharT *, const _CharT *, const _CharT *, const _CharT *)

int _STLP_CALL _M_compare ( const _CharT * __f1,
const _CharT * __l1,
const _CharT * __f2,
const _CharT * __l2
) [static, inline]

Parameters

const _CharT * __f1
const _CharT * __l1
const _CharT * __f2
const _CharT * __l2

_M_construct_null(_CharT *)

void _M_construct_null ( _CharT * __p ) const [protected, inline]

Parameters

_CharT * __p

_M_construct_null_aux(_CharT *, const __false_type &)

void _M_construct_null_aux ( _CharT * __p,
const __false_type &
) const [protected, inline]

Parameters

_CharT * __p
const __false_type &

_M_construct_null_aux(_CharT *, const __true_type &)

void _M_construct_null_aux ( _CharT * __p,
const __true_type &
) const [protected, inline]

Parameters

_CharT * __p
const __true_type &

_M_copy(const _CharT *, const _CharT *, _CharT *)

void _M_copy ( const _CharT * __f,
const _CharT * __l,
_CharT * __res
) [protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_copyT(_InputIterator, _InputIterator, pointer)

void _M_copyT ( _InputIterator __first,
_InputIterator __last,
pointer __result
) [protected, inline]

Parameters

_InputIterator __first
_InputIterator __last
pointer __result

_M_copyT(const _CharT *, const _CharT *, _CharT *)

void _M_copyT ( const _CharT * __f,
const _CharT * __l,
_CharT * __res
) [protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_force_construct_null(_CharT *, const __true_type &)

void _M_force_construct_null ( _CharT * ,
const __true_type &
) const [protected, inline]

Parameters

_CharT *
const __true_type &

_M_force_construct_null(_CharT *, const __false_type &)

void _M_force_construct_null ( _CharT * __p,
const __false_type &
) const [protected, inline]

Parameters

_CharT * __p
const __false_type &

_M_force_terminate_string(const __true_type &)

void _M_force_terminate_string ( const __true_type & ) [protected, inline]

Parameters

const __true_type &

_M_force_terminate_string(const __false_type &)

void _M_force_terminate_string ( const __false_type & ) [protected, inline]

Parameters

const __false_type &

_M_initialize_dispatch(_Integer, _Integer, const __true_type &)

void _M_initialize_dispatch ( _Integer __n,
_Integer __x,
const __true_type &
) [private, inline]

Parameters

_Integer __n
_Integer __x
const __true_type &

_M_initialize_dispatch(_InputIter, _InputIter, const __false_type &)

void _M_initialize_dispatch ( _InputIter __f,
_InputIter __l,
const __false_type &
) [private, inline]

Parameters

_InputIter __f
_InputIter __l
const __false_type &

_M_insert(iterator, const _CharT *, const _CharT *, bool)

void _M_insert ( iterator __p,
const _CharT * __first,
const _CharT * __last,
bool __self_ref
) [protected]

Parameters

iterator __p
const _CharT * __first
const _CharT * __last
bool __self_ref

_M_insertT(iterator, _InputIter, _InputIter, const input_iterator_tag &)

void _M_insertT ( iterator __p,
_InputIter __first,
_InputIter __last,
const input_iterator_tag &
) [protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const input_iterator_tag &

_M_insertT(iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)

void _M_insertT ( iterator __pos,
_ForwardIter __first,
_ForwardIter __last,
const forward_iterator_tag &
) [protected, inline]

Parameters

iterator __pos
_ForwardIter __first
_ForwardIter __last
const forward_iterator_tag &

_M_insert_aux(pointer, _CharT)

pointer _M_insert_aux ( pointer ,
_CharT
) [protected]

Parameters

pointer
_CharT

_M_insert_aux(iterator, _RandomIter, _RandomIter, const __true_type &)

void _M_insert_aux ( iterator __p,
_RandomIter __first,
_RandomIter __last,
const __true_type &
) [protected, inline]

Parameters

iterator __p
_RandomIter __first
_RandomIter __last
const __true_type &

_M_insert_aux(iterator, _InputIter, _InputIter, const __false_type &)

void _M_insert_aux ( iterator __p,
_InputIter __first,
_InputIter __last,
const __false_type &
) [protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const __false_type &

_M_insert_dispatch(iterator, _Integer, _Integer, const __true_type &)

void _M_insert_dispatch ( iterator __p,
_Integer __n,
_Integer __x,
const __true_type &
) [protected, inline]

Parameters

iterator __p
_Integer __n
_Integer __x
const __true_type &

_M_insert_dispatch(iterator, _InputIter, _InputIter, const __false_type &)

void _M_insert_dispatch ( iterator __p,
_InputIter __first,
_InputIter __last,
const __false_type &
) [protected, inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last
const __false_type &

_M_insert_overflow(iterator, _ForwardIter, _ForwardIter, difference_type)

void _M_insert_overflow ( iterator __pos,
_ForwardIter __first,
_ForwardIter __last,
difference_type __n
) [protected, inline]

Parameters

iterator __pos
_ForwardIter __first
_ForwardIter __last
difference_type __n

_M_inside(const _CharT *)

bool _M_inside ( const _CharT * __s ) const [protected, inline]

Parameters

const _CharT * __s

_M_move(const _CharT *, const _CharT *, _CharT *)

void _M_move ( const _CharT * __f,
const _CharT * __l,
_CharT * __res
) [protected, inline]

Parameters

const _CharT * __f
const _CharT * __l
_CharT * __res

_M_null()

_CharT _STLP_CALL _M_null ( ) [protected, static, inline]

_M_range_initialize(_InputIter, _InputIter, const input_iterator_tag &)

void _M_range_initialize ( _InputIter __f,
_InputIter __l,
const input_iterator_tag & __tag
) [private, inline]

Parameters

_InputIter __f
_InputIter __l
const input_iterator_tag & __tag

_M_range_initialize(_ForwardIter, _ForwardIter, const forward_iterator_tag &)

void _M_range_initialize ( _ForwardIter __f,
_ForwardIter __l,
const forward_iterator_tag &
) [private, inline]

Parameters

_ForwardIter __f
_ForwardIter __l
const forward_iterator_tag &

_M_range_initialize(const _CharT *, const _CharT *)

void _M_range_initialize ( const _CharT * __f,
const _CharT * __l
) [protected, inline]

Parameters

const _CharT * __f
const _CharT * __l

_M_range_initializeT(_InputIter, _InputIter)

void _M_range_initializeT ( _InputIter __f,
_InputIter __l
) [private, inline]

Parameters

_InputIter __f
_InputIter __l

_M_replace(iterator, iterator, const _CharT *, const _CharT *, bool)

_Self & _M_replace ( iterator __first,
iterator __last,
const _CharT * __f,
const _CharT * __l,
bool __self_ref
) [protected]

Parameters

iterator __first
iterator __last
const _CharT * __f
const _CharT * __l
bool __self_ref

_M_replaceT(iterator, iterator, _InputIter, _InputIter, const input_iterator_tag &)

_Self & _M_replaceT ( iterator __first,
iterator __last,
_InputIter __f,
_InputIter __l,
const input_iterator_tag & __ite_tag
) [inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
const input_iterator_tag & __ite_tag

_M_replaceT(iterator, iterator, _ForwardIter, _ForwardIter, const forward_iterator_tag &)

_Self & _M_replaceT ( iterator __first,
iterator __last,
_ForwardIter __f,
_ForwardIter __l,
const forward_iterator_tag & __ite_tag
) [inline]

Parameters

iterator __first
iterator __last
_ForwardIter __f
_ForwardIter __l
const forward_iterator_tag & __ite_tag

_M_replace_aux(iterator, iterator, _RandomIter, _RandomIter, __true_type const &)

_Self & _M_replace_aux ( iterator __first,
iterator __last,
_RandomIter __f,
_RandomIter __l,
__true_type const &
) [inline]

Parameters

iterator __first
iterator __last
_RandomIter __f
_RandomIter __l
__true_type const &

_M_replace_aux(iterator, iterator, _InputIter, _InputIter, __false_type const &)

_Self & _M_replace_aux ( iterator __first,
iterator __last,
_InputIter __f,
_InputIter __l,
__false_type const &
) [inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
__false_type const &

_M_replace_dispatch(iterator, iterator, _Integer, _Integer, const __true_type &)

_Self & _M_replace_dispatch ( iterator __first,
iterator __last,
_Integer __n,
_Integer __x,
const __true_type &
) [inline]

Parameters

iterator __first
iterator __last
_Integer __n
_Integer __x
const __true_type &

_M_replace_dispatch(iterator, iterator, _InputIter, _InputIter, const __false_type &)

_Self & _M_replace_dispatch ( iterator __first,
iterator __last,
_InputIter __f,
_InputIter __l,
const __false_type &
) [inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l
const __false_type &

_M_terminate_string()

void _M_terminate_string ( ) [protected, inline]

_M_terminate_string_aux(const __false_type &)

void _M_terminate_string_aux ( const __false_type & __is_integral ) [protected, inline]

Parameters

const __false_type & __is_integral

_M_terminate_string_aux(const __true_type &)

void _M_terminate_string_aux ( const __true_type & __is_integral ) [protected, inline]

Parameters

const __true_type & __is_integral

append(_InputIter, _InputIter)

_Self & append ( _InputIter __first,
_InputIter __last
) [inline]

Parameters

_InputIter __first
_InputIter __last

append(const _CharT *, const _CharT *)

_Self & append ( const _CharT * __first,
const _CharT * __last
) [inline]

Parameters

const _CharT * __first
const _CharT * __last

append(const _Self &)

_Self & append ( const _Self & __s ) [inline]

Parameters

const _Self & __s

append(const _Self &, size_type, size_type)

_Self & append ( const _Self & __s,
size_type __pos,
size_type __n
) [inline]

Parameters

const _Self & __s
size_type __pos
size_type __n

append(const _CharT *, size_type)

_Self & append ( const _CharT * __s,
size_type __n
) [inline]

Parameters

const _CharT * __s
size_type __n

append(const _CharT *)

_Self & append ( const _CharT * __s ) [inline]

Parameters

const _CharT * __s

append(size_type, _CharT)

_Self & append ( size_type __n,
_CharT __c
)

Parameters

size_type __n
_CharT __c

assign(const _Self &)

_Self & assign ( const _Self & __s ) [inline]

Parameters

const _Self & __s

assign(const _Self &, size_type, size_type)

_Self & assign ( const _Self & __s,
size_type __pos,
size_type __n
) [inline]

Parameters

const _Self & __s
size_type __pos
size_type __n

assign(const _CharT *, size_type)

_Self & assign ( const _CharT * __s,
size_type __n
) [inline]

Parameters

const _CharT * __s
size_type __n

assign(const _CharT *)

_Self & assign ( const _CharT * __s ) [inline]

Parameters

const _CharT * __s

assign(size_type, _CharT)

_Self & assign ( size_type __n,
_CharT __c
)

Parameters

size_type __n
_CharT __c

assign(_InputIter, _InputIter)

_Self & assign ( _InputIter __first,
_InputIter __last
) [inline]

Parameters

_InputIter __first
_InputIter __last

assign(const _CharT *, const _CharT *)

_Self & assign ( const _CharT * __f,
const _CharT * __l
) [inline]

Parameters

const _CharT * __f
const _CharT * __l

at(size_type)

const_reference at ( size_type __n ) const [inline]

Parameters

size_type __n

at(size_type)

reference at ( size_type __n ) [inline]

Parameters

size_type __n

begin()

iterator begin ( ) [inline]

begin()

const_iterator begin ( ) const [inline]

c_str()

const _CharT * c_str ( ) const [inline]

capacity()

size_type capacity ( ) const [inline]

clear()

void clear ( ) [inline]

compare(const _Self &)

int compare ( const _Self & __s ) const [inline]

Parameters

const _Self & __s

compare(size_type, size_type, const _Self &)

int compare ( size_type __pos1,
size_type __n1,
const _Self & __s
) const [inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s

compare(size_type, size_type, const _Self &, size_type, size_type)

int compare ( size_type __pos1,
size_type __n1,
const _Self & __s,
size_type __pos2,
size_type __n2
) const [inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s
size_type __pos2
size_type __n2

compare(const _CharT *)

int compare ( const _CharT * __s ) const [inline]

Parameters

const _CharT * __s

compare(size_type, size_type, const _CharT *)

int compare ( size_type __pos1,
size_type __n1,
const _CharT * __s
) const [inline]

Parameters

size_type __pos1
size_type __n1
const _CharT * __s

compare(size_type, size_type, const _CharT *, size_type)

int compare ( size_type __pos1,
size_type __n1,
const _CharT * __s,
size_type __n2
) const [inline]

Parameters

size_type __pos1
size_type __n1
const _CharT * __s
size_type __n2

copy(_CharT *, size_type, size_type)

size_type copy ( _CharT * __s,
size_type __n,
size_type __pos = 0
) const [inline]

Parameters

_CharT * __s
size_type __n
size_type __pos = 0

data()

const _CharT * data ( ) const [inline]

empty()

bool empty ( ) const [inline]

end()

iterator end ( ) [inline]

end()

const_iterator end ( ) const [inline]

erase(size_type, size_type)

_Self & erase ( size_type __pos = 0,
size_type __n =  npos
) [inline]

Parameters

size_type __pos = 0
size_type __n =  npos

erase(iterator)

iterator erase ( iterator __pos ) [inline]

Parameters

iterator __pos

erase(iterator, iterator)

iterator erase ( iterator __first,
iterator __last
) [inline]

Parameters

iterator __first
iterator __last

find(const _Self &, size_type)

size_type find ( const _Self & __s,
size_type __pos = 0
) const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find(const _CharT *, size_type)

size_type find ( const _CharT * __s,
size_type __pos = 0
) const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find(const _CharT *, size_type, size_type)

size_type find ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find(_CharT)

size_type find ( _CharT __c ) const [inline]

Parameters

_CharT __c

find(_CharT, size_type)

size_type find ( _CharT __c,
size_type __pos
) const

Parameters

_CharT __c
size_type __pos

find_first_not_of(const _Self &, size_type)

size_type find_first_not_of ( const _Self & __s,
size_type __pos = 0
) const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find_first_not_of(const _CharT *, size_type)

size_type find_first_not_of ( const _CharT * __s,
size_type __pos = 0
) const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find_first_not_of(const _CharT *, size_type, size_type)

size_type find_first_not_of ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_first_not_of(_CharT, size_type)

size_type find_first_not_of ( _CharT __c,
size_type __pos = 0
) const

Parameters

_CharT __c
size_type __pos = 0

find_first_of(const _Self &, size_type)

size_type find_first_of ( const _Self & __s,
size_type __pos = 0
) const [inline]

Parameters

const _Self & __s
size_type __pos = 0

find_first_of(const _CharT *, size_type)

size_type find_first_of ( const _CharT * __s,
size_type __pos = 0
) const [inline]

Parameters

const _CharT * __s
size_type __pos = 0

find_first_of(const _CharT *, size_type, size_type)

size_type find_first_of ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_first_of(_CharT, size_type)

size_type find_first_of ( _CharT __c,
size_type __pos = 0
) const [inline]

Parameters

_CharT __c
size_type __pos = 0

find_last_not_of(const _Self &, size_type)

size_type find_last_not_of ( const _Self & __s,
size_type __pos =  npos
) const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

find_last_not_of(const _CharT *, size_type)

size_type find_last_not_of ( const _CharT * __s,
size_type __pos =  npos
) const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

find_last_not_of(const _CharT *, size_type, size_type)

size_type find_last_not_of ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_last_not_of(_CharT, size_type)

size_type find_last_not_of ( _CharT __c,
size_type __pos =  npos
) const

Parameters

_CharT __c
size_type __pos =  npos

find_last_of(const _Self &, size_type)

size_type find_last_of ( const _Self & __s,
size_type __pos =  npos
) const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

find_last_of(const _CharT *, size_type)

size_type find_last_of ( const _CharT * __s,
size_type __pos =  npos
) const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

find_last_of(const _CharT *, size_type, size_type)

size_type find_last_of ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

find_last_of(_CharT, size_type)

size_type find_last_of ( _CharT __c,
size_type __pos =  npos
) const [inline]

Parameters

_CharT __c
size_type __pos =  npos

get_allocator()

allocator_type get_allocator ( ) const [inline]

insert(size_type, const _Self &)

_Self & insert ( size_type __pos,
const _Self & __s
) [inline]

Parameters

size_type __pos
const _Self & __s

insert(size_type, const _Self &, size_type, size_type)

_Self & insert ( size_type __pos,
const _Self & __s,
size_type __beg,
size_type __n
) [inline]

Parameters

size_type __pos
const _Self & __s
size_type __beg
size_type __n

insert(size_type, const _CharT *, size_type)

_Self & insert ( size_type __pos,
const _CharT * __s,
size_type __n
) [inline]

Parameters

size_type __pos
const _CharT * __s
size_type __n

insert(size_type, const _CharT *)

_Self & insert ( size_type __pos,
const _CharT * __s
) [inline]

Parameters

size_type __pos
const _CharT * __s

insert(size_type, size_type, _CharT)

_Self & insert ( size_type __pos,
size_type __n,
_CharT __c
) [inline]

Parameters

size_type __pos
size_type __n
_CharT __c

insert(iterator, _CharT)

iterator insert ( iterator __p,
_CharT __c
) [inline]

Parameters

iterator __p
_CharT __c

insert(iterator, size_t, _CharT)

void insert ( iterator __p,
size_t __n,
_CharT __c
)

Parameters

iterator __p
size_t __n
_CharT __c

insert(iterator, _InputIter, _InputIter)

void insert ( iterator __p,
_InputIter __first,
_InputIter __last
) [inline]

Parameters

iterator __p
_InputIter __first
_InputIter __last

insert(iterator, const _CharT *, const _CharT *)

void insert ( iterator __p,
const _CharT * __f,
const _CharT * __l
) [inline]

Parameters

iterator __p
const _CharT * __f
const _CharT * __l

length()

size_type length ( ) const [inline]

max_size()

size_t max_size ( ) const [inline]

operator+=(const _Self &)

_Self & operator+= ( const _Self & __s ) [inline]

Parameters

const _Self & __s

operator+=(const _CharT *)

_Self & operator+= ( const _CharT * __s ) [inline]

Parameters

const _CharT * __s

operator+=(_CharT)

_Self & operator+= ( _CharT __c ) [inline]

Parameters

_CharT __c

operator=(const _Self &)

_Self & operator= ( const _Self & __s ) [inline]

Parameters

const _Self & __s

operator=(const _CharT *)

_Self & operator= ( const _CharT * __s ) [inline]

Parameters

const _CharT * __s

operator=(_CharT)

_Self & operator= ( _CharT __c ) [inline]

Parameters

_CharT __c

operator[](size_type)

const_reference operator[] ( size_type __n ) const [inline]

Parameters

size_type __n

operator[](size_type)

reference operator[] ( size_type __n ) [inline]

Parameters

size_type __n

pop_back()

void pop_back ( ) [inline]

push_back(_CharT)

void push_back ( _CharT __c ) [inline]

Parameters

_CharT __c

rbegin()

reverse_iterator rbegin ( ) [inline]

rbegin()

const_reverse_iterator rbegin ( ) const [inline]

rend()

reverse_iterator rend ( ) [inline]

rend()

const_reverse_iterator rend ( ) const [inline]

replace(size_type, size_type, const _Self &)

_Self & replace ( size_type __pos,
size_type __n,
const _Self & __s
) [inline]

Parameters

size_type __pos
size_type __n
const _Self & __s

replace(size_type, size_type, const _Self &, size_type, size_type)

_Self & replace ( size_type __pos1,
size_type __n1,
const _Self & __s,
size_type __pos2,
size_type __n2
) [inline]

Parameters

size_type __pos1
size_type __n1
const _Self & __s
size_type __pos2
size_type __n2

replace(size_type, size_type, const _CharT *, size_type)

_Self & replace ( size_type __pos,
size_type __n1,
const _CharT * __s,
size_type __n2
) [inline]

Parameters

size_type __pos
size_type __n1
const _CharT * __s
size_type __n2

replace(size_type, size_type, const _CharT *)

_Self & replace ( size_type __pos,
size_type __n1,
const _CharT * __s
) [inline]

Parameters

size_type __pos
size_type __n1
const _CharT * __s

replace(size_type, size_type, size_type, _CharT)

_Self & replace ( size_type __pos,
size_type __n1,
size_type __n2,
_CharT __c
) [inline]

Parameters

size_type __pos
size_type __n1
size_type __n2
_CharT __c

replace(iterator, iterator, const _Self &)

_Self & replace ( iterator __first,
iterator __last,
const _Self & __s
) [inline]

Parameters

iterator __first
iterator __last
const _Self & __s

replace(iterator, iterator, const _CharT *, size_type)

_Self & replace ( iterator __first,
iterator __last,
const _CharT * __s,
size_type __n
) [inline]

Parameters

iterator __first
iterator __last
const _CharT * __s
size_type __n

replace(iterator, iterator, const _CharT *)

_Self & replace ( iterator __first,
iterator __last,
const _CharT * __s
) [inline]

Parameters

iterator __first
iterator __last
const _CharT * __s

replace(iterator, iterator, size_type, _CharT)

_Self & replace ( iterator __first,
iterator __last,
size_type __n,
_CharT __c
)

Parameters

iterator __first
iterator __last
size_type __n
_CharT __c

replace(iterator, iterator, _InputIter, _InputIter)

_Self & replace ( iterator __first,
iterator __last,
_InputIter __f,
_InputIter __l
) [inline]

Parameters

iterator __first
iterator __last
_InputIter __f
_InputIter __l

replace(iterator, iterator, const _CharT *, const _CharT *)

_Self & replace ( iterator __first,
iterator __last,
const _CharT * __f,
const _CharT * __l
) [inline]

Parameters

iterator __first
iterator __last
const _CharT * __f
const _CharT * __l

reserve(size_type)

void reserve ( size_type  = 0 )

Parameters

size_type  = 0

resize(size_type, _CharT)

void resize ( size_type __n,
_CharT __c
) [inline]

Parameters

size_type __n
_CharT __c

resize(size_type)

void resize ( size_type __n ) [inline]

Parameters

size_type __n

rfind(const _Self &, size_type)

size_type rfind ( const _Self & __s,
size_type __pos =  npos
) const [inline]

Parameters

const _Self & __s
size_type __pos =  npos

rfind(const _CharT *, size_type)

size_type rfind ( const _CharT * __s,
size_type __pos =  npos
) const [inline]

Parameters

const _CharT * __s
size_type __pos =  npos

rfind(const _CharT *, size_type, size_type)

size_type rfind ( const _CharT * __s,
size_type __pos,
size_type __n
) const

Parameters

const _CharT * __s
size_type __pos
size_type __n

rfind(_CharT, size_type)

size_type rfind ( _CharT __c,
size_type __pos =  npos
) const

Parameters

_CharT __c
size_type __pos =  npos

size()

size_type size ( ) const [inline]

substr(size_type, size_type)

_Self substr ( size_type __pos = 0,
size_type __n =  npos
) const [inline]

Parameters

size_type __pos = 0
size_type __n =  npos

swap(_Self &)

void swap ( _Self & __s ) [inline]

Parameters

_Self & __s

Member Type Definitions Documentation

Typedef _Base

typedef _STLP_PRIV _String_base < _CharT, _Alloc > _Base [protected]

Typedef _Char_Is_Integral

typedef _IsIntegral < _CharT >::_Ret _Char_Is_Integral [protected]

Typedef _Char_Is_POD

typedef _IsPOD < _CharT >::_Type _Char_Is_POD [protected]

Typedef _Iterator_category

typedef random_access_iterator_tag _Iterator_category

Typedef _Reserve_t

typedef _String_reserve_t _Reserve_t

Typedef _Self

typedef basic_string < _CharT, _Traits, _Alloc > _Self [protected]

Typedef allocator_type

typedef _Base::allocator_type allocator_type

Typedef const_iterator

typedef const value_type * const_iterator

Typedef const_pointer

typedef const value_type * const_pointer

Typedef const_reference

typedef const value_type & const_reference

Typedef difference_type

typedef ptrdiff_t difference_type

Typedef iterator

typedef value_type * iterator

Typedef pointer

typedef value_type * pointer

Typedef r_a_i_t

typedef random_access_iterator_tag r_a_i_t [protected]

Typedef reference

typedef value_type & reference

Typedef size_type

typedef _Base::size_type size_type

Typedef traits_type

typedef _Traits traits_type

Typedef value_type

typedef _CharT value_type

Member Data Documentation

_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

_STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS

const size_t npos

const size_t npos [static]