Parser Namespace Reference


Functions

int getValue (const String &str, const String &key, String &value, const CaseSensitivity caseSensitive=CASE_INSENSITIVE, const unsigned int maxValueSize=0)
int split (const String &str, StringList &values, const unsigned int maxValuesNum=0, const String &delimiters=PARSER_DELIMITERS, const bool combineDelimiters=true)
int split (char *str, char **values, unsigned int maxValuesNum, unsigned int &valuesNum, const char *delimiters=PARSER_DELIMITERS)
String join (const StringList &values, const String &delimiter=" ")
String join (const char *tokens[], const unsigned int tokensNum, const char *delimiter=" ")
int parseAddress (const String &str, String &ip, String &port)
int getValue (const String &str, const String &key, String &value, const CaseSensitivity caseSensitive, const unsigned int maxValueSize)
int split (const String &str, StringList &values, const unsigned int maxValuesNum, const String &delimiters, const bool combineDelimiters)
int split (char *str, char **values, unsigned int maxValuesNum, unsigned int &valuesNum, const char *delimiters)
String join (const StringList &values, const String &delimiter)
String join (const char *tokens[], const unsigned int tokensNum, const char *delimiter)
int parseAddress (const String &str, String &ip, String &port)


Function Documentation

int Parser::getValue ( const String str,
const String key,
String value,
const CaseSensitivity  caseSensitive,
const unsigned int  maxValueSize 
)

Definition at line 16 of file Parser.cpp.

References CASE_SENSITIVE, CSTRING(), OK, PARSER_DELIMITERS, and PARSER_QUOT.

int Parser::getValue ( const String str,
const String key,
String value,
const CaseSensitivity  caseSensitive = CASE_INSENSITIVE,
const unsigned int  maxValueSize = 0 
)

Definition at line 16 of file Parser.cpp.

References CASE_SENSITIVE, CSTRING(), OK, PARSER_DELIMITERS, and PARSER_QUOT.

String Parser::join ( const char *  tokens[],
const unsigned int  tokensNum,
const char *  delimiter 
)

Definition at line 148 of file Parser.cpp.

String Parser::join ( const StringList values,
const String delimiter 
)

Definition at line 136 of file Parser.cpp.

String Parser::join ( const char *  tokens[],
const unsigned int  tokensNum,
const char *  delimiter = " " 
)

Definition at line 148 of file Parser.cpp.

String Parser::join ( const StringList values,
const String delimiter = " " 
)

Definition at line 136 of file Parser.cpp.

int Parser::parseAddress ( const String str,
String ip,
String port 
)

Definition at line 162 of file Parser.cpp.

References ERROR, ERROR_BACKTRACE(), ERROR_PARSER_GENERAL, FAILED(), OK, PARSER_ADDRESS_DELIMITERS, and split().

int Parser::parseAddress ( const String str,
String ip,
String port 
)

Definition at line 162 of file Parser.cpp.

References ERROR, ERROR_BACKTRACE(), ERROR_PARSER_GENERAL, FAILED(), OK, PARSER_ADDRESS_DELIMITERS, and split().

int Parser::split ( char *  str,
char **  values,
unsigned int  maxValuesNum,
unsigned int &  valuesNum,
const char *  delimiters 
)

Definition at line 97 of file Parser.cpp.

References ERROR, MSG_NULL_POINTER, and OK.

int Parser::split ( const String str,
StringList values,
const unsigned int  maxValuesNum,
const String delimiters,
const bool  combineDelimiters 
)

Definition at line 68 of file Parser.cpp.

References CSTRING(), and OK.

int Parser::split ( char *  str,
char **  values,
unsigned int  maxValuesNum,
unsigned int &  valuesNum,
const char *  delimiters = PARSER_DELIMITERS 
)

Definition at line 97 of file Parser.cpp.

References ERROR, MSG_NULL_POINTER, and OK.

int Parser::split ( const String str,
StringList values,
const unsigned int  maxValuesNum = 0,
const String delimiters = PARSER_DELIMITERS,
const bool  combineDelimiters = true 
)

Definition at line 68 of file Parser.cpp.

Referenced by String::align(), S11n< vector< T > >::fromString(), S11n< T >::fromString(), and parseAddress().


Generated on Thu Sep 6 20:14:17 2007 for Pylon Application Platform by  doxygen 1.5.1