A list of strings. More...
#include <tstringlist.h>
Static Public Member Functions | |
static TAGLIB_EXPORT StringList | split (const String &s, const String &pattern) |
Related Symbols | |
(Note that these are not member symbols.) | |
std::ostream TAGLIB_EXPORT & | operator<< (std::ostream &s, const TagLib::StringList &l) |
Additional Inherited Members | |
![]() | |
void | detach () |
A list of strings.
This is a specialization of the List class with some convenience members for string operations.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | ) |
Constructs an empty StringList.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | const StringList & | l | ) |
Make a shallow, implicitly shared, copy of l. Because this is implicitly shared, this method is lightweight and suitable for pass-by-value usage.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | std::initializer_list< String > | init | ) |
Construct a StringList with the contents of the braced initializer list.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | const String & | s | ) |
Constructs a StringList with s as a member.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | const ByteVectorList & | bl, |
String::Type | t = String::Latin1 |
||
) |
Makes a deep copy of the data in bl.
TAGLIB_EXPORT TagLib::StringList::~StringList | ( | ) |
Destroys this StringList instance.
TAGLIB_EXPORT StringList & TagLib::StringList::append | ( | const String & | s | ) |
Appends s to the end of the list and returns a reference to the list.
TAGLIB_EXPORT StringList & TagLib::StringList::append | ( | const StringList & | l | ) |
Appends all of the values in l to the end of the list and returns a reference to the list.
TAGLIB_EXPORT StringList & TagLib::StringList::operator= | ( | std::initializer_list< String > | init | ) |
|
static |
Splits the String s into several strings at pattern. This will not include the pattern in the returned strings.
TAGLIB_EXPORT String TagLib::StringList::toString | ( | const String & | separator = " " | ) | const |
Concatenate the list of strings into one string separated by separator.
|
related |
Send the StringList to an output stream.