Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/string/Split.h>
Public Member Functions | |
StringSplit (void) | |
StringSplit (const String &str, char chr) | |
StringSplit (const String &str, String sub) | |
bool | ended (void) const |
String | item (void) const |
void | next (void) |
bool | equals (const StringSplit &sp) const |
operator bool () const | |
operator String () const | |
String | operator* () const |
StringSplit & | operator++ () |
StringSplit | operator++ (int) |
bool | operator== (const StringSplit &sp) const |
bool | operator!= (const StringSplit &sp) const |
This is an helper class to split a string in sub-parts using a separator (character or string). At each iteration, the next separated part is provided.
Notice that the split of an empty string iterates exactly once and its unique value is the empty string.
|
inline |
|
inline |
|
inline |
References String::length().
Referenced by StringSplit::operator bool().
|
inline |
Referenced by StringSplit::operator!=(), and StringSplit::operator==().
References String::substring().
Referenced by StringSplit::operator String(), and StringSplit::operator*().
References String::length().
Referenced by StringSplit::operator++().
|
inline |
References StringSplit::ended().
|
inline |
References StringSplit::item().
|
inline |
References StringSplit::equals().
|
inline |
References StringSplit::item().
|
inline |
References StringSplit::next().
|
inline |
References StringSplit::next().
|
inline |
References StringSplit::equals().