|
Public Types |
| typedef std::string::size_type | size_type |
| typedef std::string::difference_type | difference_type |
| typedef gunichar | value_type |
| typedef gunichar& | reference |
| typedef const gunichar& | const_reference |
typedef ustring_Iterator<
std::string::iterator > | iterator |
typedef ustring_Iterator<
std::string::const_iterator > | const_iterator |
typedef std::reverse_iterator<
iterator > | reverse_iterator |
typedef std::reverse_iterator<
const_iterator > | const_reverse_iterator |
Public Member Functions |
| | ustring () |
| | ~ustring () |
| | ustring (const ustring& other) |
| ustring& | operator= (const ustring& other) |
| void | swap (ustring& other) |
| | ustring (const std::string& src) |
| | ustring (const ustring& src, size_type i, size_type n=npos) |
| | ustring (const char* src, size_type n) |
| | ustring (const char* src) |
| | ustring (size_type n, gunichar uc) |
| | ustring (size_type n, char c) |
| template<class In> |
| | ustring (In pbegin, In pend) |
|
| ustring& | operator= (const std::string& src) |
| ustring& | operator= (const char* src) |
| ustring& | operator= (gunichar uc) |
| ustring& | operator= (char c) |
| ustring& | assign (const ustring& src) |
| ustring& | assign (const ustring& src, size_type i, size_type n) |
| ustring& | assign (const char* src, size_type n) |
| ustring& | assign (const char* src) |
| ustring& | assign (size_type n, gunichar uc) |
| ustring& | assign (size_type n, char c) |
| template<class In> |
| ustring& | assign (In pbegin, In pend) |
|
| ustring& | operator+= (const ustring& src) |
| ustring& | operator+= (const char* src) |
| ustring& | operator+= (gunichar uc) |
| ustring& | operator+= (char c) |
| void | push_back (gunichar uc) |
| void | push_back (char c) |
| ustring& | append (const ustring& src) |
| ustring& | append (const ustring& src, size_type i, size_type n) |
| ustring& | append (const char* src, size_type n) |
| ustring& | append (const char* src) |
| ustring& | append (size_type n, gunichar uc) |
| ustring& | append (size_type n, char c) |
| template<class In> |
| ustring& | append (In pbegin, In pend) |
|
| ustring& | insert (size_type i, const ustring& src) |
| ustring& | insert (size_type i, const ustring& src, size_type i2, size_type n) |
| ustring& | insert (size_type i, const char* src, size_type n) |
| ustring& | insert (size_type i, const char* src) |
| ustring& | insert (size_type i, size_type n, gunichar uc) |
| ustring& | insert (size_type i, size_type n, char c) |
| iterator | insert (iterator p, gunichar uc) |
| iterator | insert (iterator p, char c) |
| void | insert (iterator p, size_type n, gunichar uc) |
| void | insert (iterator p, size_type n, char c) |
| template<class In> |
| void | insert (iterator p, In pbegin, In pend) |
|
| ustring& | replace (size_type i, size_type n, const ustring& src) |
| ustring& | replace (size_type i, size_type n, const ustring& src, size_type i2, size_type n2) |
| ustring& | replace (size_type i, size_type n, const char* src, size_type n2) |
| ustring& | replace (size_type i, size_type n, const char* src) |
| ustring& | replace (size_type i, size_type n, size_type n2, gunichar uc) |
| ustring& | replace (size_type i, size_type n, size_type n2, char c) |
| ustring& | replace (iterator pbegin, iterator pend, const ustring& src) |
| ustring& | replace (iterator pbegin, iterator pend, const char* src, size_type n) |
| ustring& | replace (iterator pbegin, iterator pend, const char* src) |
| ustring& | replace (iterator pbegin, iterator pend, size_type n, gunichar uc) |
| ustring& | replace (iterator pbegin, iterator pend, size_type n, char c) |
| template<class In> |
| ustring& | replace (iterator pbegin, iterator pend, In pbegin2, In pend2) |
|
| void | clear () |
| ustring& | erase (size_type i, size_type n=npos) |
| ustring& | erase () |
| iterator | erase (iterator p) |
| iterator | erase (iterator pbegin, iterator pend) |
|
| int | compare (const ustring& rhs) const |
| int | compare (const char* rhs) const |
| int | compare (size_type i, size_type n, const ustring& rhs) const |
| int | compare (size_type i, size_type n, const ustring& rhs, size_type i2, size_type n2) const |
| int | compare (size_type i, size_type n, const char* rhs, size_type n2) const |
| int | compare (size_type i, size_type n, const char* rhs) const |
| std::string | collate_key () const |
| std::string | casefold_collate_key () const |
|
| value_type | operator[] (size_type i) const |
| value_type | at (size_type i) const |
| ustring | substr (size_type i=0, size_type n=npos) const |
|
| 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 |
|
| size_type | find (const ustring& str, size_type i=0) const |
| size_type | find (const char* str, size_type i, size_type n) const |
| size_type | find (const char* str, size_type i=0) const |
| size_type | find (gunichar uc, size_type i=0) const |
| size_type | find (char c, size_type i=0) const |
| size_type | rfind (const ustring& str, size_type i=npos) const |
| size_type | rfind (const char* str, size_type i, size_type n) const |
| size_type | rfind (const char* str, size_type i=npos) const |
| size_type | rfind (gunichar uc, size_type i=npos) const |
| size_type | rfind (char c, size_type i=npos) const |
|
| size_type | find_first_of (const ustring& match, size_type i=0) const |
| size_type | find_first_of (const char* match, size_type i, size_type n) const |
| size_type | find_first_of (const char* match, size_type i=0) const |
| size_type | find_first_of (gunichar uc, size_type i=0) const |
| size_type | find_first_of (char c, size_type i=0) const |
| size_type | find_last_of (const ustring& match, size_type i=npos) const |
| size_type | find_last_of (const char* match, size_type i, size_type n) const |
| size_type | find_last_of (const char* match, size_type i=npos) const |
| size_type | find_last_of (gunichar uc, size_type i=npos) const |
| size_type | find_last_of (char c, size_type i=npos) const |
| size_type | find_first_not_of (const ustring& match, size_type i=0) const |
| size_type | find_first_not_of (const char* match, size_type i, size_type n) const |
| size_type | find_first_not_of (const char* match, size_type i=0) const |
| size_type | find_first_not_of (gunichar uc, size_type i=0) const |
| size_type | find_first_not_of (char c, size_type i=0) const |
| size_type | find_last_not_of (const ustring& match, size_type i=npos) const |
| size_type | find_last_not_of (const char* match, size_type i, size_type n) const |
| size_type | find_last_not_of (const char* match, size_type i=npos) const |
| size_type | find_last_not_of (gunichar uc, size_type i=npos) const |
| size_type | find_last_not_of (char c, size_type i=npos) const |
|
| bool | empty () const |
| | Returns true if the string is empty.
|
| size_type | size () const |
| | Returns the number of characters in the string, not including any null-termination.
|
| size_type | length () const |
| | This is the same as size().
|
| size_type | bytes () const |
| | Returns the number of bytes in the string, not including any null-termination.
|
|
| void | resize (size_type n, gunichar uc) |
| void | resize (size_type n, char c='\0') |
|
| size_type | capacity () const |
| size_type | max_size () const |
| void | reserve (size_type n=0) |
|
| | operator std::string () const |
| const std::string& | raw () const |
| const char* | data () const |
| const char* | c_str () const |
| size_type | copy (char* dest, size_type n, size_type i=0) const |
|
| bool | validate () const |
| bool | validate (iterator& first_invalid) |
| bool | validate (const_iterator& first_invalid) const |
| bool | is_ascii () const |
| ustring | normalize (NormalizeMode mode=NORMALIZE_DEFAULT_COMPOSE) const |
|
| ustring | uppercase () const |
| ustring | lowercase () const |
| ustring | casefold () const |
Static Public Attributes |
| static const size_type | npos |
Related Functions |
(Note that these are not member functions.)
|
| std::istream& | operator>> (std::istream& is, Glib::ustring& utf8_string) |
| | Stream input operator.
|
| std::ostream& | operator<< (std::ostream& os, const Glib::ustring& utf8_string) |
| | Stream output operator.
|
| void | swap (ustring& lhs, ustring& rhs) |
| bool | operator== (const ustring& lhs, const ustring& rhs) |
| bool | operator== (const ustring& lhs, const char* rhs) |
| bool | operator== (const char* lhs, const ustring& rhs) |
| bool | operator!= (const ustring& lhs, const ustring& rhs) |
| bool | operator!= (const ustring& lhs, const char* rhs) |
| bool | operator!= (const char* lhs, const ustring& rhs) |
| bool | operator< (const ustring& lhs, const ustring& rhs) |
| bool | operator< (const ustring& lhs, const char* rhs) |
| bool | operator< (const char* lhs, const ustring& rhs) |
| bool | operator> (const ustring& lhs, const ustring& rhs) |
| bool | operator> (const ustring& lhs, const char* rhs) |
| bool | operator> (const char* lhs, const ustring& rhs) |
| bool | operator<= (const ustring& lhs, const ustring& rhs) |
| bool | operator<= (const ustring& lhs, const char* rhs) |
| bool | operator<= (const char* lhs, const ustring& rhs) |
| bool | operator>= (const ustring& lhs, const ustring& rhs) |
| bool | operator>= (const ustring& lhs, const char* rhs) |
| bool | operator>= (const char* lhs, const ustring& rhs) |
| ustring | operator+ (const ustring& lhs, const ustring& rhs) |
| ustring | operator+ (const ustring& lhs, const char* rhs) |
| ustring | operator+ (const char* lhs, const ustring& rhs) |
| ustring | operator+ (const ustring& lhs, gunichar rhs) |
| ustring | operator+ (gunichar lhs, const ustring& rhs) |
| ustring | operator+ (const ustring& lhs, char rhs) |
| ustring | operator+ (char lhs, const ustring& rhs) |