YAPOG  0.0.1
Yet Another Pokemon Online Game
StringHelper.cpp
Go to the documentation of this file.
1 #include <vector>
2 
3 #include <boost/algorithm/string.hpp>
4 
6 
7 namespace yap
8 {
10  const String& str,
11  const String& delimiters,
13  {
14  std::vector<String> resultVector;
15  boost::split (resultVector, str, boost::is_any_of (delimiters));
16 
17  for (const String& str : resultVector)
18  result.Add (str);
19  }
20 } // namespace yap