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))
80 #ifndef DO_NOT_DOCUMENT
81 typedef std::basic_string<wchar>::iterator Iterator;
82 typedef std::basic_string<wchar>::const_iterator ConstIterator;
131 String(
const std::string &s, Type t = Latin1);
141 String(
const wchar_t *s, Type t = UTF16BE);
149 String(
char c, Type t = Latin1);
154 String(
wchar_t c, Type t = Latin1);
163 String(
const char *s, Type t = Latin1);
183 std::string to8Bit(
bool unicode =
false)
const;
205 const char *toCString(
bool unicode =
false)
const;
215 ConstIterator begin()
const;
227 ConstIterator end()
const;
233 int find(
const String &s,
int offset = 0)
const;
240 int rfind(
const String &s,
int offset = -1)
const;
245 bool startsWith(
const String &s)
const;
281 bool isEmpty()
const;
315 int toInt(
bool *ok)
const;
320 String stripWhiteSpace()
const;
325 bool isLatin1()
const;
330 bool isAscii()
const;
335 static String number(
int n);
340 wchar &operator[](
int i);
345 const wchar &operator[](
int i)
const;
351 bool operator==(
const String &s)
const;
361 String &operator+=(
const wchar_t* s);
366 String &operator+=(
const char* s);
371 String &operator+=(
wchar_t c);
376 String &operator+=(
char c);
387 String &operator=(
const std::string &s);
397 String &operator=(
const wchar_t *s);
402 String &operator=(
char c);
407 String &operator=(
wchar_t c);
412 String &operator=(
const char *s);
424 bool operator<(
const String &s)
const;
446 void prepare(
Type t);