format: implement generic format parser and printer
This commit is contained in:
@@ -178,10 +178,10 @@ void MutableSong::setMTime(time_t mtime)
|
||||
m_mtime = mtime;
|
||||
}
|
||||
|
||||
void MutableSong::setTags(SetFunction set, const std::string &value, const std::string &delimiter)
|
||||
void MutableSong::setTags(SetFunction set, const std::string &value)
|
||||
{
|
||||
std::vector<std::string> tags;
|
||||
boost::iter_split(tags, value, boost::first_finder(delimiter));
|
||||
boost::iter_split(tags, value, boost::first_finder(Song::TagsSeparator));
|
||||
size_t i = 0;
|
||||
for (; i < tags.size(); ++i)
|
||||
(this->*set)(tags[i], i);
|
||||
|
||||
Reference in New Issue
Block a user