26 #ifndef TAGLIB_STRING_H
27 #define TAGLIB_STRING_H
44 #define QStringToTString(s) TagLib::String(s.utf8().data(), TagLib::String::UTF8)
55 #define TStringToQString(s) QString::fromUtf8(s.toCString(true))
82 #ifndef DO_NOT_DOCUMENT
83 typedef std::basic_string<wchar>::iterator Iterator;
84 typedef std::basic_string<wchar>::const_iterator ConstIterator;
133 String(
const std::string &s, Type t = Latin1);
143 String(
const wchar_t *s, Type t = UTF16BE);
151 String(
char c, Type t = Latin1);
156 String(
wchar_t c, Type t = Latin1);
165 String(
const char *s, Type t = Latin1);
185 std::string to8Bit(
bool unicode =
false)
const;
207 const char *toCString(
bool unicode =
false)
const;
217 ConstIterator begin()
const;
229 ConstIterator end()
const;
235 int find(
const String &s,
int offset = 0)
const;
242 int rfind(
const String &s,
int offset = -1)
const;
252 bool startsWith(
const String &s)
const;
288 bool isEmpty()
const;
322 int toInt(
bool *ok)
const;
327 String stripWhiteSpace()
const;
332 bool isLatin1()
const;
337 bool isAscii()
const;
342 static String number(
int n);
347 wchar &operator[](
int i);
352 const wchar &operator[](
int i)
const;
358 bool operator==(
const String &s)
const;
364 bool operator!=(
const String &s)
const;
374 String &operator+=(
const wchar_t* s);
379 String &operator+=(
const char* s);
384 String &operator+=(
wchar_t c);
389 String &operator+=(
char c);
400 String &operator=(
const std::string &s);
410 String &operator=(
const wchar_t *s);
415 String &operator=(
char c);
420 String &operator=(
wchar_t c);
425 String &operator=(
const char *s);
437 bool operator<(
const String &s)
const;
459 void prepare(
Type t);
std::basic_string< wchar > wstring
Definition: taglib.h:90
static String null
Definition: tstring.h:442
unsigned int uint
Definition: taglib.h:83
TAGLIB_EXPORT std::ostream & operator<<(std::ostream &s, const TagLib::ByteVector &v)
wchar_t wchar
Definition: taglib.h:78
A wide string class suitable for unicode.
Definition: tstring.h:78
TAGLIB_EXPORT const TagLib::String operator+(const TagLib::String &s1, const TagLib::String &s2)
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:91