This won't break the ABI compatibility.
namespace
{
- const wchar *genres[] = {
+ const wchar_t *genres[] = {
L"Blues",
L"Classic Rock",
L"Country",
* Unfortunately std::wstring isn't defined on some systems, (i.e. GCC < 3)
* so I'm providing something here that should be constant.
*/
- typedef std::basic_string<wchar> wstring;
+ typedef std::basic_string<wchar_t> wstring;
}
/*!
return Utils::formatString("%d", n);
}
-TagLib::wchar &String::operator[](int i)
+wchar_t &String::operator[](int i)
{
detach();
return d->data[i];
}
-const TagLib::wchar &String::operator[](int i) const
+const wchar_t &String::operator[](int i) const
{
return d->data[i];
}
public:
#ifndef DO_NOT_DOCUMENT
- typedef std::basic_string<wchar>::iterator Iterator;
- typedef std::basic_string<wchar>::const_iterator ConstIterator;
+ typedef TagLib::wstring::iterator Iterator;
+ typedef TagLib::wstring::const_iterator ConstIterator;
#endif
/**
/*!
* Returns a reference to the character at position \a i.
*/
- wchar &operator[](int i);
+ wchar_t &operator[](int i);
/*!
* Returns a const reference to the character at position \a i.
*/
- const wchar &operator[](int i) const;
+ const wchar_t &operator[](int i) const;
/*!
* Compares each character of the String with each character of \a s and
String longText(std::string(128 * 1024, ' ').c_str());
for (size_t i = 0; i < longText.length(); ++i)
- longText[i] = static_cast<wchar>(L'A' + (i % 26));
+ longText[i] = static_cast<wchar_t>(L'A' + (i % 26));
{
Vorbis::File f(newname.c_str());
String longText(std::string(128 * 1024, ' ').c_str());
for(size_t i = 0; i < longText.length(); ++i)
- longText[i] = static_cast<wchar>(L'A' + (i % 26));
+ longText[i] = static_cast<wchar_t>(L'A' + (i % 26));
{
Ogg::FLAC::File f(newname.c_str());
String longText(std::string(128 * 1024, ' ').c_str());
for(size_t i = 0; i < longText.length(); ++i)
- longText[i] = static_cast<wchar>(L'A' + (i % 26));
+ longText[i] = static_cast<wchar_t>(L'A' + (i % 26));
{
Ogg::Opus::File f(newname.c_str());
String longText(std::string(128 * 1024, ' ').c_str());
for (size_t i = 0; i < longText.length(); ++i)
- longText[i] = static_cast<wchar>(L'A' + (i % 26));
+ longText[i] = static_cast<wchar_t>(L'A' + (i % 26));
{
Ogg::Speex::File f(newname.c_str());