basic_string< charT > Class Template Reference

#include <bstring.h>

Collaboration diagram for basic_string< charT >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef charT char_type
typedef string_char_baggage<
charT > 
baggage_type

Public Member Functions

 basic_string () _THROW_ALLOC
 basic_string (size_t size, capacity cap) _THROW_ALLOC_LENGTH
 basic_string (const basic_string< charT > &str, size_t pos=0, size_t n=NPOS) _THROW_ALLOC_OUTRANGE
 basic_string (const charT *s, size_t n) _THROW_ALLOC_LENGTH
 basic_string (const charT *s) _THROW_ALLOC
 basic_string (charT c, size_t rep=1) _THROW_ALLOC_LENGTH
 basic_string (const vector< charT > &vec) _THROW_ALLOC_LENGTH
 ~basic_string () _THROW_NONE
basic_string< charT > & operator= (const basic_string< charT > &str) _THROW_ALLOC
basic_string< charT > & operator= (const charT *s) _THROW_ALLOC
basic_string< charT > & operator= (charT c) _THROW_ALLOC
basic_string< charT > & operator+= (const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
basic_string< charT > & operator+= (const charT *s) _THROW_ALLOC_LENGTH
basic_string< charT > & operator+= (charT c) _THROW_ALLOC_LENGTH
 operator vector () const _THROW_ALLOC
basic_string< charT > & append (const basic_string< charT > &str, size_t pos=0, size_t n=NPOS) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & append (const charT *s, size_t n) _THROW_ALLOC_LENGTH
basic_string< charT > & append (const charT *s) _THROW_ALLOC_LENGTH
basic_string< charT > & append (charT c, size_t rep=1) _THROW_ALLOC_LENGTH
basic_string< charT > & assign (const basic_string< charT > &str, size_t pos=0, size_t n=NPOS) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & assign (const charT *s, size_t n) _THROW_ALLOC_LENGTH
basic_string< charT > & assign (const charT *s) _THROW_ALLOC_LENGTH
basic_string< charT > & assign (charT c, size_t rep=1) _THROW_ALLOC_LENGTH
basic_string< charT > & insert (size_t pos1, const basic_string< charT > &str, size_t pos2=0, size_t n=NPOS) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & insert (size_t pos, const charT *s, size_t n) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & insert (size_t pos, const charT *s) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & insert (size_t pos, charT c, size_t rep=1) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & erase (size_t pos=0, size_t n=NPOS) _THROW_ALLOC_OUTRANGE
basic_string< charT > & replace (size_t pos1, size_t n1, const basic_string< charT > &str, size_t pos2=0, size_t n2=NPOS) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & replace (size_t pos, size_t n1, const charT *s, size_t n2) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & replace (size_t pos, size_t n1, const charT *s) _THROW_ALLOC_LENGTH_OUTRANGE
basic_string< charT > & replace (size_t pos, size_t n, charT c, size_t rep=1) _THROW_ALLOC_LENGTH_OUTRANGE
charT at (size_t pos) const _THROW_OUTRANGE
void put_at (size_t pos, charT c) _THROW_ALLOC_OUTRANGE
charT operator[] (size_t pos) const _THROW_NONE
charT & operator[] (size_t pos) _THROW_ALLOC_OUTRANGE
const charT * c_str () const _THROW_ALLOC
const charT * data () const _THROW_NONE
size_t length () const _THROW_NONE
void resize (size_t n, charT c) _THROW_ALLOC_LENGTH
void resize (size_t n) _THROW_ALLOC_LENGTH
size_t reserve () const _THROW_NONE
void reserve (size_t res_arg) _THROW_ALLOC_LENGTH
size_t copy (charT *s, size_t n, size_t pos=0) const _THROW_OUTRANGE
size_t find (const basic_string< charT > &str, size_t pos=0) const _THROW_NONE
size_t find (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t find (const charT *s, size_t pos=0) const _THROW_NONE
size_t find (charT c, size_t pos=0) const _THROW_NONE
size_t rfind (const basic_string< charT > &str, size_t pos=NPOS) const _THROW_NONE
size_t rfind (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t rfind (const charT *s, size_t pos=NPOS) const _THROW_NONE
size_t rfind (charT c, size_t pos=NPOS) const _THROW_NONE
size_t find_first_of (const basic_string< charT > &str, size_t pos=0) const _THROW_NONE
size_t find_first_of (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t find_first_of (const charT *s, size_t pos=0) const _THROW_NONE
size_t find_first_of (charT c, size_t pos=0) const _THROW_NONE
size_t find_last_of (const basic_string< charT > &str, size_t pos=NPOS) const _THROW_NONE
size_t find_last_of (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t find_last_of (const charT *s, size_t pos=NPOS) const _THROW_NONE
size_t find_last_of (charT c, size_t pos=NPOS) const _THROW_NONE
size_t find_first_not_of (const basic_string< charT > &str, size_t pos=0) const _THROW_NONE
size_t find_first_not_of (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t find_first_not_of (const charT *s, size_t pos=0) const _THROW_NONE
size_t find_first_not_of (charT c, size_t pos=0) const _THROW_NONE
size_t find_last_not_of (const basic_string< charT > &str, size_t pos=NPOS) const _THROW_NONE
size_t find_last_not_of (const charT *s, size_t pos, size_t n) const _THROW_NONE
size_t find_last_not_of (const charT *s, size_t pos=NPOS) const _THROW_NONE
size_t find_last_not_of (charT c, size_t pos=NPOS) const _THROW_NONE
basic_string< charT > substr (size_t pos=0, size_t n=NPOS) const _THROW_ALLOC_OUTRANGE
int compare (const basic_string< charT > &str, size_t pos=0, size_t n=NPOS) const _THROW_OUTRANGE
int compare (const charT *s, size_t pos, size_t n) const _THROW_LENGTH_OUTRANGE
int compare (const charT *s, size_t pos=0) const _THROW_OUTRANGE
int compare (charT c, size_t pos=0, size_t rep=1) const _THROW_LENGTH_OUTRANGE

Protected Member Functions

 basic_string (const charT *s, size_t rlen, size_t xlen) _THROW_ALLOC_LENGTH
void delete_ref () _THROW_NONE

Friends

ostream & operator<< (ostream &o, const basic_string< charT > &s) _THROW_NONE
istream & operator>> (istream &i, basic_string< charT > &s) _THROW_ALLOC_LENGTH
basic_string< charT > operator+ (const basic_string< charT > &lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
basic_string< charT > operator+ (const charT *lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
basic_string< charT > operator+ (charT lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
basic_string< charT > operator+ (const basic_string< charT > &lhs, const charT *rhs) _THROW_ALLOC_LENGTH
basic_string< charT > operator+ (const basic_string< charT > &lhs, charT rhs) _THROW_ALLOC_LENGTH

Detailed Description

template<class charT>
class basic_string< charT >

Definition at line 402 of file bstring.h.


Member Typedef Documentation

template<class charT>
typedef string_char_baggage<charT> basic_string< charT >::baggage_type
 

Definition at line 485 of file bstring.h.

template<class charT>
typedef charT basic_string< charT >::char_type
 

Definition at line 484 of file bstring.h.


Constructor & Destructor Documentation

template<class charT>
basic_string< charT >::basic_string const charT *  s,
size_t  rlen,
size_t  xlen
[protected]
 

Definition at line 1572 of file bstring.h.

References NPOS.

template<class charT>
basic_string< charT >::basic_string  ) 
 

Definition at line 1541 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string size_t  size,
capacity  cap
 

Definition at line 1548 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string const basic_string< charT > &  str,
size_t  pos = 0,
size_t  n = NPOS
 

Definition at line 1556 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string const charT *  s,
size_t  n
 

Definition at line 1584 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string const charT *  s  ) 
 

Definition at line 1591 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string charT  c,
size_t  rep = 1
 

Definition at line 1598 of file bstring.h.

template<class charT>
basic_string< charT >::basic_string const vector< charT > &  vec  ) 
 

Definition at line 1605 of file bstring.h.

template<class charT>
basic_string< charT >::~basic_string  ) 
 

Definition at line 1612 of file bstring.h.

References basic_string< charT >::delete_ref().

Here is the call graph for this function:


Member Function Documentation

template<class charT>
basic_string< charT > & basic_string< charT >::append charT  c,
size_t  rep = 1
 

Definition at line 1727 of file bstring.h.

References assign(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), NPOS, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::append const charT *  s  ) 
 

Definition at line 1719 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::append const charT *  s,
size_t  n
 

Definition at line 1711 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::append const basic_string< charT > &  str,
size_t  pos = 0,
size_t  n = NPOS
 

Definition at line 1698 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::assign charT  c,
size_t  rep = 1
 

Definition at line 1787 of file bstring.h.

References assign(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, NPOS, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::assign const charT *  s  ) 
 

Definition at line 1779 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::assign const charT *  s,
size_t  n
 

Definition at line 1771 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::assign const basic_string< charT > &  str,
size_t  pos = 0,
size_t  n = NPOS
 

Definition at line 1751 of file bstring.h.

template<class charT>
charT basic_string< charT >::at size_t  pos  )  const [inline]
 

Definition at line 836 of file bstring.h.

References basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
const charT * basic_string< charT >::c_str  )  const
 

Definition at line 2042 of file bstring.h.

References assign(), basic_string< charT >::c_str_ptr, string_char_baggage< charT >::copy(), basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
int basic_string< charT >::compare charT  c,
size_t  pos = 0,
size_t  rep = 1
const
 

Definition at line 2365 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::length(), and NPOS.

Here is the call graph for this function:

template<class charT>
int basic_string< charT >::compare const charT *  s,
size_t  pos = 0
const
 

Definition at line 2358 of file bstring.h.

References string_char_baggage< charT >::length(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
int basic_string< charT >::compare const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2346 of file bstring.h.

References basic_string< charT >::length(), and NPOS.

Here is the call graph for this function:

template<class charT>
int basic_string< charT >::compare const basic_string< charT > &  str,
size_t  pos = 0,
size_t  n = NPOS
const
 

Definition at line 2337 of file bstring.h.

References basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::copy charT *  s,
size_t  n,
size_t  pos = 0
const
 

Definition at line 2105 of file bstring.h.

References string_char_baggage< charT >::copy(), basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
const charT * basic_string< charT >::data  )  const [inline]
 

Definition at line 801 of file bstring.h.

References basic_string< charT >::length(), and basic_string_ref< charT >::ptr.

Referenced by basic_string< charT >::append(), basic_string< charT >::at(), basic_string< charT >::c_str(), basic_string< charT >::compare(), basic_string< charT >::copy(), basic_string< charT >::erase(), basic_string< charT >::find(), basic_string< charT >::find_first_not_of(), basic_string< charT >::find_last_not_of(), basic_string< charT >::insert(), basic_string< charT >::operator vector(), basic_string< charT >::operator+=(), basic_string< charT >::operator[](), basic_string< charT >::put_at(), basic_string< charT >::replace(), basic_string< charT >::reserve(), basic_string< charT >::resize(), basic_string< charT >::rfind(), and basic_string< charT >::substr().

Here is the call graph for this function:

template<class charT>
void basic_string< charT >::delete_ref  )  [inline, protected]
 

Definition at line 785 of file bstring.h.

References basic_string_ref< charT >::count.

Referenced by basic_string< charT >::append(), basic_string< charT >::assign(), basic_string< charT >::erase(), basic_string< charT >::insert(), basic_string< charT >::operator+=(), basic_string< charT >::operator=(), basic_string< charT >::operator[](), basic_string< charT >::put_at(), basic_string< charT >::replace(), basic_string< charT >::reserve(), basic_string< charT >::resize(), and basic_string< charT >::~basic_string().

template<class charT>
basic_string< charT > & basic_string< charT >::erase size_t  pos = 0,
size_t  n = NPOS
 

Definition at line 1884 of file bstring.h.

References string_char_baggage< charT >::copy(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), and basic_string_ref< charT >::ptr.

Referenced by basic_string< charT >::replace().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find charT  c,
size_t  pos = 0
const
 

Definition at line 2142 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::length(), string_char_baggage< charT >::ne(), and NPOS.

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find const charT *  s,
size_t  pos = 0
const
 

Definition at line 2135 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2127 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find const basic_string< charT > &  str,
size_t  pos = 0
const
 

Definition at line 2119 of file bstring.h.

Referenced by basic_string< charT >::find_first_of().

template<class charT>
size_t basic_string< charT >::find_first_not_of charT  c,
size_t  pos = 0
const
 

Definition at line 2274 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::length(), and NPOS.

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_first_not_of const charT *  s,
size_t  pos = 0
const
 

Definition at line 2266 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_first_not_of const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2258 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_first_not_of const basic_string< charT > &  str,
size_t  pos = 0
const
 

Definition at line 2250 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_first_of charT  c,
size_t  pos = 0
const
 

Definition at line 2213 of file bstring.h.

References basic_string< charT >::find().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_first_of const charT *  s,
size_t  pos = 0
const
 

Definition at line 2205 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_first_of const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2197 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_first_of const basic_string< charT > &  str,
size_t  pos = 0
const
 

Definition at line 2189 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_last_not_of charT  c,
size_t  pos = NPOS
const
 

Definition at line 2307 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::length(), and NPOS.

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_last_not_of const charT *  s,
size_t  pos = NPOS
const
 

Definition at line 2299 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_last_not_of const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2291 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_last_not_of const basic_string< charT > &  str,
size_t  pos = NPOS
const
 

Definition at line 2283 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_last_of charT  c,
size_t  pos = NPOS
const
 

Definition at line 2243 of file bstring.h.

References basic_string< charT >::rfind().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_last_of const charT *  s,
size_t  pos = NPOS
const
 

Definition at line 2236 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::find_last_of const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2228 of file bstring.h.

template<class charT>
size_t basic_string< charT >::find_last_of const basic_string< charT > &  str,
size_t  pos = NPOS
const
 

Definition at line 2220 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::insert size_t  pos,
charT  c,
size_t  rep = 1
 

Definition at line 1843 of file bstring.h.

References assign(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), NPOS, basic_string_ref< charT >::ptr, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::insert size_t  pos,
const charT *  s
 

Definition at line 1834 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::insert size_t  pos,
const charT *  s,
size_t  n
 

Definition at line 1825 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::insert size_t  pos1,
const basic_string< charT > &  str,
size_t  pos2 = 0,
size_t  n = NPOS
 

Definition at line 1811 of file bstring.h.

template<class charT>
size_t basic_string< charT >::length  )  const [inline]
 

Definition at line 822 of file bstring.h.

References basic_string_ref< charT >::len.

Referenced by basic_string< charT >::append(), basic_string< charT >::at(), basic_string< charT >::c_str(), basic_string< charT >::compare(), basic_string< charT >::copy(), basic_string< charT >::data(), basic_string< charT >::erase(), basic_string< charT >::find(), basic_string< charT >::find_first_not_of(), basic_string< charT >::find_last_not_of(), basic_string< charT >::insert(), basic_string< charT >::operator vector(), basic_string< charT >::operator+=(), basic_string< charT >::operator[](), basic_string< charT >::put_at(), basic_string< charT >::replace(), basic_string< charT >::reserve(), basic_string< charT >::resize(), basic_string< charT >::rfind(), and basic_string< charT >::substr().

template<class charT>
basic_string< charT >::operator vector  )  const [inline]
 

Definition at line 522 of file bstring.h.

References basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::operator+= charT  c  ) 
 

Definition at line 1677 of file bstring.h.

References assign(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), NPOS, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::operator+= const charT *  s  ) 
 

Definition at line 1669 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::operator+= const basic_string< charT > &  rhs  ) 
 

Definition at line 1661 of file bstring.h.

template<class charT>
basic_string< charT > & basic_string< charT >::operator= charT  c  ) 
 

Definition at line 1644 of file bstring.h.

References assign(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::operator= const charT *  s  ) 
 

Definition at line 1636 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::operator= const basic_string< charT > &  str  ) 
 

Definition at line 1621 of file bstring.h.

References basic_string< charT >::delete_ref(), and NPOS.

Here is the call graph for this function:

template<class charT>
charT & basic_string< charT >::operator[] size_t  pos  ) 
 

Definition at line 2024 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::delete_ref(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
charT basic_string< charT >::operator[] size_t  pos  )  const [inline]
 

Definition at line 847 of file bstring.h.

References basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
void basic_string< charT >::put_at size_t  pos,
charT  c
 

Definition at line 2003 of file bstring.h.

References assign(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::replace size_t  pos,
size_t  n,
charT  c,
size_t  rep = 1
 

Definition at line 1947 of file bstring.h.

References assign(), string_char_baggage< charT >::copy(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string< charT >::erase(), basic_string_ref< charT >::len, basic_string< charT >::length(), NPOS, basic_string_ref< charT >::ptr, and reserve.

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::replace size_t  pos,
size_t  n1,
const charT *  s
 

Definition at line 1937 of file bstring.h.

References string_char_baggage< charT >::length(), and basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::replace size_t  pos,
size_t  n1,
const charT *  s,
size_t  n2
 

Definition at line 1927 of file bstring.h.

References basic_string< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string< charT > & basic_string< charT >::replace size_t  pos1,
size_t  n1,
const basic_string< charT > &  str,
size_t  pos2 = 0,
size_t  n2 = NPOS
 

Definition at line 1912 of file bstring.h.

template<class charT>
void basic_string< charT >::reserve size_t  res_arg  ) 
 

Definition at line 2088 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string< charT >::length(), NPOS, and reserve.

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::reserve  )  const [inline]
 

Definition at line 829 of file bstring.h.

References basic_string_ref< charT >::res.

template<class charT>
void basic_string< charT >::resize size_t  n  ) 
 

Definition at line 2081 of file bstring.h.

References basic_string< charT >::resize().

Here is the call graph for this function:

template<class charT>
void basic_string< charT >::resize size_t  n,
charT  c
 

Definition at line 2057 of file bstring.h.

References assign(), basic_string< charT >::data(), basic_string< charT >::delete_ref(), basic_string_ref< charT >::len, basic_string< charT >::length(), NPOS, basic_string_ref< charT >::ptr, and reserve.

Referenced by basic_string< charT >::resize().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::rfind charT  c,
size_t  pos = NPOS
const
 

Definition at line 2174 of file bstring.h.

References basic_string< charT >::data(), basic_string< charT >::length(), string_char_baggage< charT >::ne(), and NPOS.

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::rfind const charT *  s,
size_t  pos = NPOS
const
 

Definition at line 2167 of file bstring.h.

References string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
size_t basic_string< charT >::rfind const charT *  s,
size_t  pos,
size_t  n
const
 

Definition at line 2159 of file bstring.h.

template<class charT>
size_t basic_string< charT >::rfind const basic_string< charT > &  str,
size_t  pos = NPOS
const
 

Definition at line 2151 of file bstring.h.

Referenced by basic_string< charT >::find_last_of().

template<class charT>
basic_string< charT > basic_string< charT >::substr size_t  pos = 0,
size_t  n = NPOS
const
 

Definition at line 2322 of file bstring.h.

References basic_string< charT >::data(), and basic_string< charT >::length().

Here is the call graph for this function:


Friends And Related Function Documentation

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
charT  rhs
[friend]
 

Definition at line 2446 of file bstring.h.

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
const charT *  rhs
[friend]
 

Definition at line 2433 of file bstring.h.

template<class charT>
basic_string<charT> operator+ charT  lhs,
const basic_string< charT > &  rhs
[friend]
 

Definition at line 2421 of file bstring.h.

template<class charT>
basic_string<charT> operator+ const charT *  lhs,
const basic_string< charT > &  rhs
[friend]
 

Definition at line 2408 of file bstring.h.

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
const basic_string< charT > &  rhs
[friend]
 

Definition at line 2395 of file bstring.h.

template<class charT>
ostream& operator<< ostream &  o,
const basic_string< charT > &  s
[friend]
 

Definition at line 2457 of file bstring.h.

template<class charT>
istream& operator>> istream &  i,
basic_string< charT > &  s
[friend]
 

Definition at line 2467 of file bstring.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 16 14:34:36 2006 for IPPL by  doxygen 1.4.6