Puma::SimpleParser Class Reference

#include <Puma/common/SimpleParser.h>

Inheritance diagram for Puma::SimpleParser:

Inheritance graph

List of all members.


Detailed Description

Simple string parser.

Static Public Member Functions

static string strip (const string &str)
static int tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ")

Member Function Documentation

static string Puma::SimpleParser::strip ( const string &  str  )  [static]

Remove enclosing double-quotes from a string.

Parameters:
str The string to strip.
Returns:
String without the enclosing double-quotes.

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.

Parameters:
str The string to split.
tokens A vector for the tokens.
delimiters A string with the delimiters. Default is a space or tab.
Returns:
Number of recognized tokens.


Generated on Sat May 10 03:03:46 2008 for Puma by  doxygen 1.5.5