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;
133 static Type ID3Type(
int i);
155 String(
const std::string &s,
Type t = Latin1);
212 std::string to8Bit(
bool unicode =
false)
const;
241 const char *toCString(
bool unicode =
false)
const;
259 const wchar_t *toCWString()
const;
269 ConstIterator begin()
const;
281 ConstIterator end()
const;
287 int find(
const String &s,
int offset = 0)
const;
294 int rfind(
const String &s,
int offset = -1)
const;
304 bool startsWith(
const String &s)
const;
310 String substr(
unsigned int position,
unsigned int n = 0xffffffff)
const;
333 unsigned int size()
const;
338 unsigned int length()
const;
345 bool isEmpty()
const;
389 int toInt(
bool *ok)
const;
394 String stripWhiteSpace()
const;
399 bool isLatin1()
const;
404 bool isAscii()
const;
409 static String number(
int n);
414 wchar_t &operator[](
int i);
419 const wchar_t &operator[](
int i)
const;
425 bool operator==(
const String &s)
const;
431 bool operator!=(
const String &s)
const;
437 bool operator==(
const char *s)
const;
443 bool operator!=(
const char *s)
const;
449 bool operator==(
const wchar_t *s)
const;
455 bool operator!=(
const wchar_t *s)
const;
465 String &operator+=(
const wchar_t* s);
470 String &operator+=(
const char* s);
475 String &operator+=(
wchar_t c);
480 String &operator+=(
char c);
491 String &operator=(
const std::string &s);
501 String &operator=(
const wchar_t *s);
506 String &operator=(
char c);
511 String &operator=(
wchar_t c);
516 String &operator=(
const char *s);
533 bool operator<(
const String &s)
const;
560 static const Type WCharByteOrder;
std::basic_string< wchar_t > wstring
Definition: taglib.h:76
static String null
Definition: tstring.h:544
A wide string class suitable for unicode.
Definition: tstring.h:84
A byte vector.
Definition: tbytevector.h:45
A list of strings.
Definition: tstringlist.h:45
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Type
Definition: tstring.h:97
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41