#include <cxxtools/string.h>
Public Types | |
| typedef cxxtools::Char | value_type |
| typedef size_t | size_type |
|
typedef char_traits < cxxtools::Char > | traits_type |
|
typedef std::allocator < cxxtools::Char > | allocator_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 value_type * | iterator |
| typedef const value_type * | const_iterator |
|
typedef std::reverse_iterator < iterator > | reverse_iterator |
|
typedef const std::reverse_iterator < const_iterator > | const_reverse_iterator |
Public Member Functions | |
| basic_string (const allocator_type &a) | |
| basic_string (const cxxtools::Char *str, const allocator_type &a=allocator_type()) | |
| basic_string (const wchar_t *str, const allocator_type &a=allocator_type()) | |
| basic_string (const wchar_t *str, size_type n, const allocator_type &a=allocator_type()) | |
| basic_string (const cxxtools::Char *str, size_type n, const allocator_type &a=allocator_type()) | |
| basic_string (size_type n, cxxtools::Char c) | |
| basic_string (const basic_string &str) | |
| basic_string (const basic_string &str, size_type pos) | |
| basic_string (const basic_string &str, size_type pos, size_type n) | |
| basic_string (const basic_string &str, size_type pos, size_type n, const allocator_type &a) | |
| basic_string (const cxxtools::Char *begin, const cxxtools::Char *end) | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| reference | operator[] (size_type n) |
| const_reference | operator[] (size_type n) const |
| reference | at (size_type n) |
| const_reference | at (size_type n) const |
| void | push_back (cxxtools::Char ch) |
| void | resize (size_t n, cxxtools::Char ch=value_type()) |
| void | reserve (size_t n=0) |
| void | swap (basic_string &str) |
| allocator_type | get_allocator () const |
| size_type | copy (cxxtools::Char *a, size_type n, size_type pos=0) const |
| basic_string | substr (size_type pos, size_type n) const |
| basic_string | substr (size_type pos=0) const |
| size_type | length () const |
| size_type | size () const |
| bool | empty () const |
| size_type | max_size () const |
| size_type | capacity () const |
| const cxxtools::Char * | data () const |
| const cxxtools::Char * | c_str () const |
| basic_string & | assign (const basic_string &str) |
| basic_string & | assign (const basic_string &str, size_type pos, size_type n) |
| basic_string & | assign (const cxxtools::Char *str) |
| basic_string & | assign (const cxxtools::Char *str, size_type length) |
| basic_string & | assign (size_type n, cxxtools::Char c) |
| basic_string & | append (const cxxtools::Char *str) |
| basic_string & | append (const cxxtools::Char *str, size_type n) |
| basic_string & | append (size_type n, cxxtools::Char ch) |
| basic_string & | append (const basic_string &str) |
| basic_string & | append (const basic_string &str, size_type pos, size_type n) |
| basic_string & | append (const cxxtools::Char *begin, const cxxtools::Char *end) |
| basic_string & | insert (size_type pos, const cxxtools::Char *str) |
| basic_string & | insert (size_type pos, const cxxtools::Char *str, size_type n) |
| basic_string & | insert (size_type pos, size_type n, cxxtools::Char ch) |
| basic_string & | insert (size_type pos, const basic_string &str) |
| basic_string & | insert (size_type pos, const basic_string &str, size_type pos2, size_type n) |
| basic_string & | insert (iterator p, cxxtools::Char ch) |
| basic_string & | insert (iterator p, size_type n, cxxtools::Char ch) |
| void | clear () |
| basic_string & | erase (size_type pos=0, size_type n=npos) |
| iterator | erase (iterator pos) |
| iterator | erase (iterator first, iterator last) |
| basic_string & | replace (size_type pos, size_type n, const cxxtools::Char *str) |
| basic_string & | replace (size_type pos, size_type n, const cxxtools::Char *str, size_type n2) |
| basic_string & | replace (size_type pos, size_type n, size_type n2, cxxtools::Char ch) |
| basic_string & | replace (size_type pos, size_type n, const basic_string &str) |
| basic_string & | replace (size_type pos, size_type n, const basic_string &str, size_type pos2, size_type n2) |
| basic_string & | replace (iterator i1, iterator i2, const cxxtools::Char *str) |
| basic_string & | replace (iterator i1, iterator i2, const cxxtools::Char *str, size_type n) |
| basic_string & | replace (iterator i1, iterator i2, size_type n, cxxtools::Char ch) |
| basic_string & | replace (iterator i1, iterator i2, const basic_string &str) |
| int | compare (const basic_string &str) const |
| int | compare (const cxxtools::Char *str) const |
| int | compare (const wchar_t *str) const |
| int | compare (size_type pos, size_type n, const basic_string &str) const |
| int | compare (size_type pos, size_type n, const basic_string &str, size_type pos2, size_type n2) const |
| int | compare (size_type pos, size_type n, const cxxtools::Char *str) const |
| int | compare (size_type pos, size_type n, const cxxtools::Char *str, size_type n2) const |
| size_type | find (const basic_string &str, size_type pos=0) const |
| size_type | find (const cxxtools::Char *str, size_type pos, size_type n) const |
| size_type | find (const cxxtools::Char *str, size_type pos=0) const |
| size_type | find (cxxtools::Char ch, size_type pos=0) const |
| size_type | rfind (const basic_string &str, size_type pos=npos) const |
| size_type | rfind (const cxxtools::Char *str, size_type pos, size_type n) const |
| size_type | rfind (const cxxtools::Char *str, size_type pos=npos) const |
| size_type | rfind (cxxtools::Char ch, 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 cxxtools::Char *s, size_type pos, size_type n) const |
| size_type | find_first_of (const cxxtools::Char *str, size_type pos=0) const |
| size_type | find_first_of (const cxxtools::Char ch, 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 cxxtools::Char *s, size_type pos, size_type n) const |
| size_type | find_last_of (const cxxtools::Char *str, size_type pos=npos) const |
| size_type | find_last_of (const cxxtools::Char ch, 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 cxxtools::Char *s, size_type pos, size_type n) const |
| size_type | find_first_not_of (const cxxtools::Char *str, size_type pos=0) const |
| size_type | find_first_not_of (const cxxtools::Char ch, 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 cxxtools::Char *tok, size_type pos, size_type n) const |
| size_type | find_last_not_of (const cxxtools::Char *str, size_type pos=npos) const |
| size_type | find_last_not_of (cxxtools::Char ch, size_type pos=npos) const |
| void | detach (size_type reserveSize) |
| std::string | narrow () const |
| template<typename OutIterT> | |
| OutIterT | toUtf16 (OutIterT to) const |
| basic_string & | operator= (const basic_string &str) |
| basic_string & | operator= (const cxxtools::Char *str) |
| basic_string & | operator= (cxxtools::Char c) |
| basic_string & | operator+= (const basic_string &str) |
| basic_string & | operator+= (const cxxtools::Char *str) |
| basic_string & | operator+= (cxxtools::Char c) |
| const cxxtools::StringData & | sdata () const |
Static Public Member Functions | |
| static basic_string | widen (const std::string &str) |
| template<typename InIterT> | |
| static basic_string | fromUtf16 (InIterT from, InIterT fromEnd) |
Static Public Attributes | |
| static const size_type | npos = static_cast<size_type>(-1) |