![]() |
|
#include <id3v1tag.h>
Public Member Functions | |
virtual String | parse (const ByteVector &data) const |
virtual ByteVector | render (const String &s) const |
ID3v1 should in theory always contain ISO-8859-1 (Latin1) data. In practice it does not. TagLib by default only supports ISO-8859-1 data in ID3v1 tags.
However by subclassing this class and reimplementing parse() and render() and setting your reimplementation as the default with ID3v1::Tag::setStringHandler() you can define how you would like these transformations to be done.
virtual String TagLib::ID3v1::StringHandler::parse | ( | const ByteVector & | data | ) | const [virtual] |
Decode a string from data. The default implementation assumes that data is an ISO-8859-1 (Latin1) character array.
virtual ByteVector TagLib::ID3v1::StringHandler::render | ( | const String & | s | ) | const [virtual] |
Encode a ByteVector with the data from s. The default implementation assumes that s is an ISO-8859-1 (Latin1) string. If the string is does not conform to ISO-8859-1, no value is written.