diff options
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c index 4c786a83c..a39886ccb 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1056,6 +1056,18 @@ std::list<ci::string> BuildStringList(const ci::string &src) return Ret; } +std::vector<std::string> BuildStringVector(const std::string &src) +{ + spacesepstream tokens(src); + std::string token; + std::vector<std::string> Ret; + + while (tokens.GetToken(token)) + Ret.push_back(token); + + return Ret; +} + /*************************************************************************/ /** |