Scheduler
stringUtils.cpp
Go to the documentation of this file.
1 
10 #include "stringUtils.h"
11 
12 #include <string>
13 #include <sstream>
14 
15 
16 using namespace Utils;
17 
18 std::vector<std::string> StringUtils::split(std::string str, char del)
19 {
20  /*TODO*/
21 
22  std::vector<std::string> vector;
23  std::stringstream stream(str);
24  std::string element;
25  while (std::getline(stream, element, del))
26  {
27  if (element.size() == 0)
28  continue;
29  vector.push_back(element);
30  }
31  return vector;
32 }
33 
34 
35 
36 
Definition: context.h:16
static std::vector< std::string > split(std::string str, char delimiter)
Definition: stringUtils.cpp:18