#include <sharelib.h>
Collaboration diagram for Share::String< TAllocator >:

Public Types | |
| typedef TContainer::iterator | iterator |
| STL string iterator equivalent. | |
| typedef TContainer::const_iterator | const_iterator |
| STL string const_iterator equivalent. | |
Public Member Functions | |
| String () | |
| String (size_type size, const_reference val) | |
| String (const TItem *sz) | |
| String (const String &other) | |
| String & | operator= (const TItem *sz) |
| String & | operator= (const String &other) |
| reference | operator[] (size_type index) |
| const_reference | operator[] (size_type index) const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| int | compare (const String &other) const |
| bool | operator== (const String< TAllocator > &other) const |
| bool | operator!= (const String< TAllocator > &other) const |
| bool | operator<= (const String< TAllocator > &other) const |
| bool | operator>= (const String< TAllocator > &other) const |
| bool | operator< (const String< TAllocator > &other) const |
| bool | operator> (const String< TAllocator > &other) const |
| void | append (const TItem *) |
| void | clear () |
| bool | empty () const |
| size_type | length () const |
| const TItem * | c_str () const |
Light-weight implementation of std::string
| TAllocator | Type of allocator for container. Default is std::allocator. For sharing use Share::Allocator instead. |
Definition at line 966 of file sharelib.h.
| typedef TContainer::iterator Share::String< TAllocator >::iterator |
| typedef TContainer::const_iterator Share::String< TAllocator >::const_iterator |
| Share::String< TAllocator >::String | ( | ) | [inline] |
Construct empty string
Definition at line 983 of file sharelib.h.
| Share::String< TAllocator >::String | ( | size_type | size, | |
| const_reference | val | |||
| ) | [inline] |
Construct string of desired size
| size | Desired size of string. | |
| val | Character to fill string. |
Definition at line 993 of file sharelib.h.
| Share::String< TAllocator >::String | ( | const TItem * | sz | ) | [inline] |
Construct string from existing zero-ended string.
| sz | Pointer to zero-ended string. |
Definition at line 1003 of file sharelib.h.
| Share::String< TAllocator >::String | ( | const String< TAllocator > & | other | ) | [inline] |
Copy constructor
Definition at line 1015 of file sharelib.h.
| String& Share::String< TAllocator >::operator= | ( | const TItem * | sz | ) | [inline] |
assignment
Definition at line 1023 of file sharelib.h.
| String& Share::String< TAllocator >::operator= | ( | const String< TAllocator > & | other | ) | [inline] |
assignment
Definition at line 1036 of file sharelib.h.
References Share::String< TAllocator >::array_.
| reference Share::String< TAllocator >::operator[] | ( | size_type | index | ) | [inline] |
| index | Index of desired character |
Definition at line 1045 of file sharelib.h.
| const_reference Share::String< TAllocator >::operator[] | ( | size_type | index | ) | const [inline] |
| index | Index of desired character |
Definition at line 1052 of file sharelib.h.
| iterator Share::String< TAllocator >::begin | ( | ) | [inline] |
Definition at line 1059 of file sharelib.h.
References Share::Vector< TItem, TAllocator >::begin().
Referenced by Share::String< TAllocator >::compare().
| iterator Share::String< TAllocator >::end | ( | ) | [inline] |
Definition at line 1066 of file sharelib.h.
Referenced by Share::String< TAllocator >::compare().
| const_iterator Share::String< TAllocator >::begin | ( | ) | const [inline] |
Definition at line 1073 of file sharelib.h.
| const_iterator Share::String< TAllocator >::end | ( | ) | const [inline] |
Definition at line 1080 of file sharelib.h.
| int Share::String< TAllocator >::compare | ( | const String< TAllocator > & | other | ) | const [inline] |
Lexical comparation with other string
| other | Other string to compare to |
Definition at line 1089 of file sharelib.h.
References Share::String< TAllocator >::begin(), and Share::String< TAllocator >::end().
| bool Share::String< TAllocator >::operator== | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1107 of file sharelib.h.
| bool Share::String< TAllocator >::operator!= | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1108 of file sharelib.h.
| bool Share::String< TAllocator >::operator<= | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1109 of file sharelib.h.
| bool Share::String< TAllocator >::operator>= | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1110 of file sharelib.h.
| bool Share::String< TAllocator >::operator< | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1111 of file sharelib.h.
| bool Share::String< TAllocator >::operator> | ( | const String< TAllocator > & | other | ) | const [inline] |
Definition at line 1112 of file sharelib.h.
| void Share::String< TAllocator >::append | ( | const TItem * | ) |
| void Share::String< TAllocator >::clear | ( | ) | [inline] |
Replace string with empty string.
Definition at line 1122 of file sharelib.h.
| bool Share::String< TAllocator >::empty | ( | ) | const [inline] |
| size_type Share::String< TAllocator >::length | ( | ) | const [inline] |
| const TItem* Share::String< TAllocator >::c_str | ( | ) | const [inline] |
1.5.2