24 std::vector<std::string>
26 std::vector<std::string>
res;
27 std::string::size_type old_pos = 0,
pos =
line.find(
',',0);
28 while(
pos != std::string::npos ) {
29 res.push_back(
line.substr(old_pos,
pos-old_pos));
34 if (old_pos <
line.size())
35 res.push_back(
line.substr(old_pos,
line.size()-old_pos));
41 std::vector< std::string >
43 std::string temp(triggerNames);
44 std::string::size_type
pos;
46 while ((
pos = temp.find_first_of(
' ')) != std::string::npos)
52 std::vector< std::string >
54 std::vector< std::string >
v;
55 v.assign(triggerNames.begin(),triggerNames.end());
56 std::sort(
v.begin(),
v.end());
57 v.erase( std::unique(
v.begin(),
v.end()),
v.end());