26#ifndef TAGLIB_STRING_H
27#define TAGLIB_STRING_H
43#if defined(QT_VERSION) && (QT_VERSION >= 0x040000)
44#define QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
46#define QStringToTString(s) TagLib::String((s).utf8().data(), TagLib::String::UTF8)
59#define TStringToQString(s) QString::fromUtf8((s).toCString(true))
86#ifndef DO_NOT_DOCUMENT
87 using Iterator = std::wstring::iterator;
88 using ConstIterator = std::wstring::const_iterator;
197 std::string
to8Bit(
bool unicode =
false)
const;
271 ConstIterator
end()
const;
306 String substr(
unsigned int position,
unsigned int n = 0xffffffff)
const;
360 int toInt(
bool *ok =
nullptr)
const;
522 std::shared_ptr<StringPrivate> d;
A byte vector.
Definition: tbytevector.h:46
A list of strings.
Definition: tstringlist.h:44
A wide string class suitable for unicode.
Definition: tstring.h:83
TAGLIB_EXPORT TagLib::String operator+(const TagLib::String &s1, const char *s2)
String & operator=(const String &s)
bool operator==(const wchar_t *s) const
std::wstring toWString() const
String & operator+=(wchar_t c)
bool startsWith(const String &s) const
int toInt(bool *ok=nullptr) const
String & operator+=(char c)
ConstIterator cbegin() const
String & append(const String &s)
StringList split(const String &separator=" ") const
String & operator=(const ByteVector &v)
String(char c, Type t=Latin1)
bool operator!=(const char *s) const
bool operator!=(const wchar_t *s) const
ByteVector data(Type t) const
TAGLIB_EXPORT TagLib::String operator+(const TagLib::String &s1, const TagLib::String &s2)
static String fromLongLong(long long n)
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::String &str)
String(const wchar_t *s, Type t)
static String number(int n)
ConstIterator end() const
unsigned int length() const
bool operator==(const char *s) const
String & operator+=(const char *s)
String & operator=(const std::wstring &s)
String & operator+=(const String &s)
String(const char *s, Type t=Latin1)
String(const std::wstring &s)
String & operator=(char c)
String stripWhiteSpace() const
String(const ByteVector &v, Type t=Latin1)
const wchar_t * toCWString() const
bool operator<(const String &s) const
const char * toCString(bool unicode=false) const
const wchar_t & operator[](int i) const
std::string to8Bit(bool unicode=false) const
wchar_t & operator[](int i)
String & operator=(wchar_t c)
ConstIterator cend() const
String & operator=(const std::string &s)
String & operator+=(const wchar_t *s)
Type
Definition: tstring.h:96
String(const std::wstring &s, Type t)
TAGLIB_EXPORT TagLib::String operator+(const char *s1, const TagLib::String &s2)
String substr(unsigned int position, unsigned int n=0xffffffff) const
void swap(String &s) noexcept
String(const std::string &s, Type t=Latin1)
String & operator=(const wchar_t *s)
ConstIterator begin() const
bool operator==(const String &s) const
String(wchar_t c, Type t=Latin1)
unsigned int size() const
int rfind(const String &s, int offset=-1) const
bool operator!=(const String &s) const
String & operator=(const char *s)
int find(const String &s, int offset=0) const
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
#define TAGLIB_MSVC_SUPPRESS_WARNING_NEEDS_TO_HAVE_DLL_INTERFACE
Definition: taglib_export.h:55