15 #include "nav2_util/string_utils.hpp"
21 Tokens split(
const std::string & tokenstring,
char delimiter)
25 size_t current_pos = 0;
27 while ((pos = tokenstring.find(delimiter, current_pos)) != std::string::npos) {
28 tokens.push_back(tokenstring.substr(current_pos, pos - current_pos));
29 current_pos = pos + 1;
31 tokens.push_back(tokenstring.substr(current_pos));