PUMA Library Reference Manual
|
#include <Puma/SimpleParser.h>
Simple string tokenizer taking a string and providing a list of the tokens recognized.
Static Public Member Functions | |
static std::string | strip (const std::string &str) |
Remove enclosing double-quotes from a string. More... | |
static int | tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ") |
Splits a given string into tokens recognized by the given delimiters. More... | |
|
static |
Remove enclosing double-quotes from a string.
str | The string to strip. |
|
static |
Splits a given string into tokens recognized by the given delimiters.
str | The string to split. |
tokens | The container for the resulting tokens. |
delimiters | A string with the delimiters. Defaults to a single space. |