2016-05-30 16:37:03 +00:00
|
|
|
#include "shared.hpp"
|
|
|
|
|
|
|
|
#include <functional>
|
2017-10-28 19:39:46 +00:00
|
|
|
#include <sstream>
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
int test(int var) {
|
|
|
|
return var;
|
|
|
|
}
|
|
|
|
namespace ace {
|
|
|
|
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
|
|
|
|
std::stringstream ss(s);
|
|
|
|
std::string item;
|
|
|
|
while (std::getline(ss, item, delim)) {
|
|
|
|
elems.push_back(item);
|
|
|
|
}
|
|
|
|
return elems;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<std::string> split(const std::string &s, char delim) {
|
|
|
|
std::vector<std::string> elems;
|
|
|
|
split(s, delim, elems);
|
|
|
|
return elems;
|
|
|
|
}
|
2017-10-28 19:39:46 +00:00
|
|
|
}
|