TagLib
2.0.2
|
A list of strings. More...
#include <tstringlist.h>
Public Member Functions | |
TAGLIB_EXPORT | StringList () |
TAGLIB_EXPORT | StringList (const StringList &l) |
TAGLIB_EXPORT | StringList (std::initializer_list< String > init) |
TAGLIB_EXPORT StringList & | operator= (const StringList &) |
TAGLIB_EXPORT StringList & | operator= (std::initializer_list< String > init) |
TAGLIB_EXPORT | StringList (const String &s) |
TAGLIB_EXPORT | StringList (const ByteVectorList &bl, String::Type t=String::Latin1) |
TAGLIB_EXPORT | ~StringList () |
TAGLIB_EXPORT String | toString (const String &separator=" ") const |
TAGLIB_EXPORT StringList & | append (const String &s) |
TAGLIB_EXPORT StringList & | append (const StringList &l) |
![]() | |
List () | |
List (const List< String > &l) | |
List (std::initializer_list< String > init) | |
~List () | |
Iterator | begin () |
ConstIterator | begin () const |
ConstIterator | cbegin () const |
Iterator | end () |
ConstIterator | end () const |
ConstIterator | cend () const |
Iterator | insert (Iterator it, const String &item) |
List< String > & | sortedInsert (const String &value, bool unique=false) |
List< String > & | append (const String &item) |
List< String > & | append (const List< String > &l) |
List< String > & | prepend (const String &item) |
List< String > & | prepend (const List< String > &l) |
List< String > & | clear () |
unsigned int | size () const |
bool | isEmpty () const |
Iterator | find (const String &value) |
ConstIterator | find (const String &value) const |
ConstIterator | cfind (const String &value) const |
bool | contains (const String &value) const |
Iterator | erase (Iterator it) |
const String & | front () const |
String & | front () |
const String & | back () const |
String & | back () |
void | setAutoDelete (bool autoDelete) |
bool | autoDelete () const |
String & | operator[] (unsigned int i) |
const String & | operator[] (unsigned int i) const |
List< String > & | operator= (const List< String > &l) |
List< String > & | operator= (std::initializer_list< String > init) |
void | swap (List< String > &l) noexcept |
bool | operator== (const List< String > &l) const |
bool | operator!= (const List< String > &l) const |
void | sort () |
void | sort (Compare &&comp) |
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.
References TAGLIB_EXPORT.
Referenced by append(), append(), operator=(), operator=(), split(), and 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.
References StringList(), and TAGLIB_EXPORT.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | std::initializer_list< String > | init | ) |
Construct a StringList with the contents of the braced initializer list.
References TAGLIB_EXPORT.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | const String & | s | ) |
Constructs a StringList with s as a member.
References TAGLIB_EXPORT.
TAGLIB_EXPORT TagLib::StringList::StringList | ( | const ByteVectorList & | bl, |
String::Type | t = String::Latin1 ) |
Makes a deep copy of the data in bl.
References TagLib::String::Latin1, and TAGLIB_EXPORT.
TAGLIB_EXPORT TagLib::StringList::~StringList | ( | ) |
Destroys this StringList instance.
References TAGLIB_EXPORT.
TAGLIB_EXPORT StringList & TagLib::StringList::append | ( | const String & | s | ) |
Appends s to the end of the list and returns a reference to the list.
References StringList(), and TAGLIB_EXPORT.
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.
References StringList(), and TAGLIB_EXPORT.
TAGLIB_EXPORT StringList & TagLib::StringList::operator= | ( | const StringList & | ) |
References StringList(), and TAGLIB_EXPORT.
TAGLIB_EXPORT StringList & TagLib::StringList::operator= | ( | std::initializer_list< String > | init | ) |
References StringList(), and TAGLIB_EXPORT.
|
static |
Splits the String s into several strings at pattern. This will not include the pattern in the returned strings.
References StringList().
TAGLIB_EXPORT String TagLib::StringList::toString | ( | const String & | separator = " " | ) | const |
Concatenate the list of strings into one string separated by separator.
References TAGLIB_EXPORT.
|
Send the StringList to an output stream.
References TAGLIB_EXPORT.