26#ifndef TAGLIB_STRING_H
27#define TAGLIB_STRING_H
45#if defined(QT_VERSION) && (QT_VERSION >= 0x040000)
46#define QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
48#define QStringToTString(s) TagLib::String((s).utf8().data(), TagLib::String::UTF8)
61#define TStringToQString(s) QString::fromUtf8((s).toCString(true))
88#ifndef DO_NOT_DOCUMENT
89 typedef TagLib::wstring::iterator Iterator;
90 typedef TagLib::wstring::const_iterator ConstIterator;
196 std::string
to8Bit(
bool unicode =
false)
const;
265 ConstIterator
end()
const;
294 String substr(
unsigned int position,
unsigned int n = 0xffffffff)
const;
A byte vector.
Definition tbytevector.h:46
A list of strings.
Definition tstringlist.h:46
A wide string class suitable for unicode.
Definition tstring.h:85
TAGLIB_EXPORT TagLib::String operator+(const TagLib::String &s1, const char *s2)
String & operator=(const String &s)
bool operator==(const wchar_t *s) const
String & operator+=(wchar_t c)
bool startsWith(const String &s) const
String & operator+=(char c)
String & append(const String &s)
StringList split(const String &separator=" ") const
wstring toWString() const
String & operator=(const ByteVector &v)
String(char c, Type t=Latin1)
bool operator!=(const char *s) const
String(const wchar_t *s, Type t=UTF16BE)
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)
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::String &str)
static String number(int n)
String(const wstring &s, Type t=UTF16BE)
ConstIterator end() const
unsigned int length() const
bool operator==(const char *s) const
String & operator+=(const char *s)
String & operator+=(const String &s)
String(const char *s, Type t=Latin1)
String & operator=(char c)
String stripWhiteSpace() const
TAGLIB_DEPRECATED bool isNull() 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)
String & operator=(const std::string &s)
String & operator+=(const wchar_t *s)
Type
Definition tstring.h:97
@ Latin1
Definition tstring.h:101
@ UTF16BE
Definition tstring.h:110
@ UTF16
Definition tstring.h:105
@ UTF8
Definition tstring.h:114
@ UTF16LE
Definition tstring.h:118
TAGLIB_EXPORT TagLib::String operator+(const char *s1, const TagLib::String &s2)
String substr(unsigned int position, unsigned int n=0xffffffff) const
int toInt(bool *ok) const
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
static TAGLIB_DEPRECATED String null
Definition tstring.h:528
String & operator=(const wstring &s)
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
std::basic_string< wchar_t > wstring
Definition taglib.h:86
#define TAGLIB_DEPRECATED
Definition taglib.h:54
#define TAGLIB_EXPORT
Definition taglib_export.h:40