| Puma Reference Manual | Puma: Puma::SimpleParser Class Reference |
#include <Puma/common/SimpleParser.h>

Static Public Member Functions | |
| static string | strip (const string &str) |
| Remove enclosing double-quotes from a string. | |
| static int | tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ") |
| Splits a given string into tokens recognized by the given delimiters. | |
| static string Puma::SimpleParser::strip | ( | const string & | str | ) | [static] |
Remove enclosing double-quotes from a string.
| str | The string to strip. |
| static int Puma::SimpleParser::tokenize | ( | const string & | str, | |
| vector< string > & | tokens, | |||
| const string & | delimiters = " " | |||
| ) | [static] |
Splits a given string into tokens recognized by the given delimiters.
| str | The string to split. | |
| tokens | A vector for the tokens. | |
| delimiters | A string with the delimiters. Default is a space or tab. |