Rename the functions 'isValidStream' to 'isSupported'.

The name 'isValidStream' is a little misleading because it doesn't check if the stream is really valid. Additionally, 'isSupported' can be naturally overloaded.
This commit is contained in:
Tsuda Kageyu
2017-02-07 22:36:56 +09:00
parent d4d8410c08
commit f76b1e5429
29 changed files with 43 additions and 43 deletions

View File

@ -70,7 +70,7 @@ public:
// static members
////////////////////////////////////////////////////////////////////////////////
bool Ogg::FLAC::File::isValidStream(IOStream *stream)
bool Ogg::FLAC::File::isSupported(IOStream *stream)
{
// An Ogg FLAC file has IDs "OggS" and "fLaC" somewhere.

View File

@ -149,7 +149,7 @@ namespace TagLib {
* \note This method is designed to do a quick check. The result may
* not necessarily be correct.
*/
static bool isValidStream(IOStream *stream);
static bool isSupported(IOStream *stream);
private:
File(const File &);

View File

@ -58,7 +58,7 @@ public:
// static members
////////////////////////////////////////////////////////////////////////////////
bool Ogg::Opus::File::isValidStream(IOStream *stream)
bool Ogg::Opus::File::isSupported(IOStream *stream)
{
// An Opus file has IDs "OggS" and "OpusHead" somewhere.

View File

@ -120,7 +120,7 @@ namespace TagLib {
* \note This method is designed to do a quick check. The result may
* not necessarily be correct.
*/
static bool isValidStream(IOStream *stream);
static bool isSupported(IOStream *stream);
private:
File(const File &);

View File

@ -58,7 +58,7 @@ public:
// static members
////////////////////////////////////////////////////////////////////////////////
bool Ogg::Speex::File::isValidStream(IOStream *stream)
bool Ogg::Speex::File::isSupported(IOStream *stream)
{
// A Speex file has IDs "OggS" and "Speex " somewhere.

View File

@ -120,7 +120,7 @@ namespace TagLib {
* \note This method is designed to do a quick check. The result may
* not necessarily be correct.
*/
static bool isValidStream(IOStream *stream);
static bool isSupported(IOStream *stream);
private:
File(const File &);

View File

@ -63,7 +63,7 @@ namespace TagLib {
// static members
////////////////////////////////////////////////////////////////////////////////
bool Vorbis::File::isValidStream(IOStream *stream)
bool Vorbis::File::isSupported(IOStream *stream)
{
// An Ogg Vorbis file has IDs "OggS" and "\x01vorbis" somewhere.

View File

@ -127,7 +127,7 @@ namespace TagLib {
* \note This method is designed to do a quick check. The result may
* not necessarily be correct.
*/
static bool isValidStream(IOStream *stream);
static bool isSupported(IOStream *stream);
private:
File(const File &);