|
TagLib 1.11.1 (tstring.h Source File) |
|
|
Go to the documentation of this file.
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;
544 static const Type WCharByteOrder;
String & operator=(const ByteVector &v)
String(const wchar_t *s, Type t=UTF16BE)
int toInt(bool *ok) const
String & operator+=(const String &s)
String(wchar_t c, Type t=Latin1)
String(const char *s, Type t=Latin1)
A list of strings.
Definition: tstringlist.h:67
TAGLIB_EXPORT const TagLib::String operator+(const char *s1, const TagLib::String &s2)
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
wchar_t & operator[](int i)
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::String &str)
bool operator==(const char *s) const
String(const ByteVector &v, Type t=Latin1)
bool operator!=(const wchar_t *s) const
unsigned int size() const
bool operator<(const String &s) const
const char * toCString(bool unicode=false) const
int rfind(const String &s, int offset=-1) const
String(const std::string &s, Type t=Latin1)
String substr(unsigned int position, unsigned int n=0xffffffff) const
StringList split(const String &separator=" ") const
std::string to8Bit(bool unicode=false) const
ConstIterator begin() const
Type
Definition: tstring.h:97
bool operator!=(const String &s) const
const wchar_t * toCWString() const
String & append(const String &s)
String & operator=(const char *s)
String & operator+=(wchar_t c)
String & operator=(const wstring &s)
ConstIterator end() const
String & operator=(const wchar_t *s)
bool operator==(const String &s) const
String(char c, Type t=Latin1)
int find(const String &s, int offset=0) const
bool operator!=(const char *s) const
String & operator=(const std::string &s)
String & operator=(char c)
String & operator=(wchar_t c)
ByteVector data(Type t) const
A byte vector.
Definition: tbytevector.h:67
std::basic_string< wchar_t > wstring
Definition: taglib.h:76
TAGLIB_EXPORT const TagLib::String operator+(const TagLib::String &s1, const TagLib::String &s2)
String & operator+=(char c)
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
String(const wstring &s, Type t=UTF16BE)
String stripWhiteSpace() const
bool operator==(const wchar_t *s) const
bool startsWith(const String &s) const
const wchar_t & operator[](int i) const
wstring toWString() const
String & operator=(const String &s)
TAGLIB_EXPORT const TagLib::String operator+(const TagLib::String &s1, const char *s2)
A wide string class suitable for unicode.
Definition: tstring.h:85
unsigned int length() const
static String number(int n)
String & operator+=(const char *s)
String & operator+=(const wchar_t *s)