23 std::vector<std::string>
25 std::vector<std::string>
res;
26 std::string::size_type old_pos = 0,
pos =
line.find(
',',0);
27 while(
pos != std::string::npos ) {
28 res.push_back(
line.substr(old_pos,
pos-old_pos));
33 if (old_pos <
line.size())
34 res.push_back(
line.substr(old_pos,
line.size()-old_pos));
40 std::vector< std::string >
42 std::string temp(triggerNames);
43 std::string::size_type
pos;
45 while ((
pos = temp.find_first_of(
' ')) != std::string::npos)
51 std::vector< std::string >
53 std::vector< std::string >
v;
54 v.assign(triggerNames.begin(),triggerNames.end());
55 std::sort(
v.begin(),
v.end());
56 v.erase( std::unique(
v.begin(),
v.end()),
v.end());