tstringlist.h
Go to the documentation of this file.
/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/***************************************************************************
* This library is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License version *
* 2.1 as published by the Free Software Foundation. *
* *
* This library is distributed in the hope that it will be useful, but *
* WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
* Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
* 02110-1301 USA *
* *
* Alternatively, this file is available under the Mozilla Public *
* License Version 1.1. You may obtain a copy of the License at *
* http://www.mozilla.org/MPL/ *
***************************************************************************/
#ifndef TAGLIB_STRINGLIST_H
#define TAGLIB_STRINGLIST_H
#include "tstring.h"
#include "tlist.h"
#include "tbytevectorlist.h"
#include "taglib_export.h"
namespace TagLib {
class StringList : public List<String>
{
public:
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);
TAGLIB_EXPORT
static StringList split(const String &s, const String &pattern);
private:
class StringListPrivate;
std::unique_ptr<StringListPrivate> d;
};
} // namespace TagLib
std::ostream TAGLIB_EXPORT &operator<<(std::ostream &s, const TagLib::StringList &l);
#endif
TagLib::ByteVectorList
A list of ByteVectors.
Definition tbytevectorlist.h:42
TagLib::List< String >::List
List()
TagLib::StringList
A list of strings.
Definition tstringlist.h:44
TagLib::StringList::~StringList
TAGLIB_EXPORT ~StringList()
TagLib::StringList::split
static TAGLIB_EXPORT StringList split(const String &s, const String &pattern)
TagLib::StringList::append
TAGLIB_EXPORT StringList & append(const String &s)
TagLib::StringList::StringList
TAGLIB_EXPORT StringList()
TagLib::StringList::StringList
TAGLIB_EXPORT StringList(const ByteVectorList &bl, String::Type t=String::Latin1)
TagLib::StringList::toString
TAGLIB_EXPORT String toString(const String &separator=" ") const
TagLib::StringList::operator<<
std::ostream TAGLIB_EXPORT & operator<<(std::ostream &s, const TagLib::StringList &l)
TagLib::StringList::append
TAGLIB_EXPORT StringList & append(const StringList &l)
TagLib::StringList::operator=
TAGLIB_EXPORT StringList & operator=(const StringList &)
TagLib::StringList::StringList
TAGLIB_EXPORT StringList(const StringList &l)
TagLib::StringList::operator=
TAGLIB_EXPORT StringList & operator=(std::initializer_list< String > init)
TagLib::StringList::StringList
TAGLIB_EXPORT StringList(std::initializer_list< String > init)
TagLib::StringList::StringList
TAGLIB_EXPORT StringList(const String &s)
TagLib::String
A wide string class suitable for unicode.
Definition tstring.h:83
TagLib::String::Type
Type
Definition tstring.h:96
TagLib::String::Latin1
@ Latin1
Definition tstring.h:100
TagLib
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition taglib_export.h:40
tbytevectorlist.h
tlist.h
tstring.h