mirror of
https://github.com/taglib/taglib.git
synced 2025-07-14 11:04:17 -04:00
Use a standard type rather than TagLib::wchar.
This won't break the ABI compatibility.
This commit is contained in:
@ -29,7 +29,7 @@ using namespace TagLib;
|
||||
|
||||
namespace
|
||||
{
|
||||
const wchar *genres[] = {
|
||||
const wchar_t *genres[] = {
|
||||
L"Blues",
|
||||
L"Classic Rock",
|
||||
L"Country",
|
||||
|
@ -73,7 +73,7 @@ namespace TagLib {
|
||||
* 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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
@ -635,13 +635,13 @@ String String::number(int n) // static
|
||||
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];
|
||||
}
|
||||
|
@ -86,8 +86,8 @@ namespace TagLib {
|
||||
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
|
||||
|
||||
/**
|
||||
@ -395,12 +395,12 @@ namespace TagLib {
|
||||
/*!
|
||||
* 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
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
|
||||
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());
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
|
||||
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());
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
|
||||
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());
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
|
||||
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());
|
||||
|
Reference in New Issue
Block a user