diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-10-04 22:33:17 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-10-18 16:59:57 +0200 |
commit | 8db773cfeca87f797486a37a5cadd385896b6460 (patch) | |
tree | 60d6e9d91ece00e1d62a43553e4b68db1822187c /src/mutable_song.cpp | |
parent | 5908250c18b77a0a0b1d80cc078174e497b66fb9 (diff) |
replace a few string algorithms with boost utilities
Diffstat (limited to 'src/mutable_song.cpp')
-rw-r--r-- | src/mutable_song.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mutable_song.cpp b/src/mutable_song.cpp index 64b2b24e..761d41e4 100644 --- a/src/mutable_song.cpp +++ b/src/mutable_song.cpp @@ -18,8 +18,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include <boost/algorithm/string/split.hpp> #include "mutable_song.h" -#include "utility/string.h" namespace MPD {// @@ -168,7 +168,8 @@ void MutableSong::setDuration(unsigned int duration) void MutableSong::setTags(SetFunction set, const std::string &value, const std::string &delimiter) { - auto tags = split(value, delimiter); + std::vector<std::string> tags; + boost::iter_split(tags, value, boost::first_finder(delimiter)); size_t i = 0; for (; i < tags.size(); ++i) (this->*set)(tags[i], i); |