|
Jameo Core Library
|
This is a list of strings. It provides useful methods for manipulating string lists. More...
Public Member Functions | |
| StringList () | |
| Constructor for empty string list. | |
| StringList (size_t size) | |
| Constructor for empty string list with a given size. The elements are initialized to empty strings. | |
| StringList (const StringList &other) | |
| StringList (const jm::String &string) | |
| ~StringList () override | |
| void | reserve (size_t size) |
| Reserve space for a given number of elements. The size of the list is not changed. | |
| void | append (const jm::String &string) |
| void | remove (const jm::String &string) |
| size_t | size () const |
| void | sort () |
| jm::String | join (Char divider) const |
| const String & | get (size_t index) const |
| void | set (size_t index, const String &item) |
| String & | operator[] (const size_t index) const |
| StringList & | operator= (const StringList &another) |
| void | clear () |
| bool | contains (const String &str) const |
| String * | begin () |
| String * | end () |
Public Member Functions inherited from jm::Object | |
| Object () noexcept | |
| Constructor. | |
| virtual | ~Object () noexcept |
| Destructor. | |
| void | release () noexcept |
| Decreases the reference counter and releases the object immediately when the reference counter becomes 0. | |
| Object * | retain () noexcept |
| Increases the reference counter of this object by 1. | |
| Object * | autorelease () noexcept |
| Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object. | |
| int32 | referenceCount () const noexcept |
| Returns the value of the reference counter. | |
| virtual bool | equals (const Object *other) const |
| Comparison of objects. | |
| virtual String | displayName () const |
| Returns the display name of the object intended to present to a user. | |
| virtual void | printDiffInfo (DiffOperation operation, Object *other) const |
| Output method for outputting the diff results for the diff algorithm. | |
| void | setHighBit (bool status) noexcept |
| bool | highBit () const noexcept |
Friends | |
| DllExport friend StringList & | operator<< (StringList &out, const String &str) |
This is a list of strings. It provides useful methods for manipulating string lists.
| jm::StringList::StringList | ( | ) |
Constructor for empty string list.
|
explicit |
Constructor for empty string list with a given size. The elements are initialized to empty strings.
| size | The size of the list. |
| jm::StringList::StringList | ( | const StringList & | other | ) |
|
explicit |
|
override |
| void jm::StringList::append | ( | const jm::String & | string | ) |
| String * jm::StringList::begin | ( | ) |
| void jm::StringList::clear | ( | ) |
| bool jm::StringList::contains | ( | const String & | str | ) | const |
| String * jm::StringList::end | ( | ) |
| const String & jm::StringList::get | ( | size_t | index | ) | const |
| jm::String jm::StringList::join | ( | Char | divider | ) | const |
| StringList & jm::StringList::operator= | ( | const StringList & | another | ) |
| String & jm::StringList::operator[] | ( | const size_t | index | ) | const |
| void jm::StringList::remove | ( | const jm::String & | string | ) |
| void jm::StringList::reserve | ( | size_t | size | ) |
Reserve space for a given number of elements. The size of the list is not changed.
| size | The number of elements to reserve space for. |
| void jm::StringList::set | ( | size_t | index, |
| const String & | item | ||
| ) |
| size_t jm::StringList::size | ( | ) | const |
| void jm::StringList::sort | ( | ) |
|
friend |