Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Strings Namespace Reference

different string functions. More...


Typedefs

typedef std::list< std::string > string_list
typedef string_list::iterator string_list_it

Functions

std::string strip (const std::string &str, const std::string &what="\t\0\n")
 strips a string. More...

string_list split (std::string line, std::string what)
 splits a string, by ignoring what is between two pairs ("). More...

string_list split_simple (std::string str, std::string seperator="\t\n", int max=-1)
 splits a string. More...

string_list split_string (std::string str, std::string seperator="", int max=-1)
 splits a string by using a fixed seperator string. More...

template<class T> std::string x2s (T what)
 converts anything to a string. More...

std::string substitude (std::string str, std::string what, std::string with)
 substitudes. More...

std::string substitude (std::string str, std::string what, std::string with, std::string ignore)
std::string macro_substitution (std::string text)
 substitude function for html-macro parsing. More...

template<class T> T s2x (const std::string &s)
 convert a string to anything. More...

void toupper (std::string &s)
 converts a string to upper case. More...

bool isnum (const std::string &s)
 returns true if the string is a number. More...

std::strstream & operator>> (std::strstream &in, bool &w)
 reads a boolean value from a strstream. More...

std::stringstream & operator>> (std::stringstream &in, bool &w)

Variables

bool old_macro_style
 new or old macro substitution ? More...


Detailed Description

different string functions.

Typedef Documentation

typedef std::list< std::string > Strings::string_list
 

typedef string_list::iterator Strings::string_list_it
 


Function Documentation

bool Strings::isnum (  const std::string &    s ) 
 

returns true if the string is a number.

std::string Strings::macro_substitution (  std::string    text ) 
 

substitude function for html-macro parsing.

std::stringstream & Strings::operator>> (  std::stringstream &    in,
bool &    w
) 
 

std::strstream & Strings::operator>> (  std::strstream &    in,
bool &    w
) 
 

reads a boolean value from a strstream.

template<class T>
T Strings::s2x (  const std::string &    s ) 
 

convert a string to anything.

string_list Strings::split (  std::string    line,
std::string    what
) 
 

splits a string, by ignoring what is between two pairs (").

string_list Strings::split_simple (  std::string    str,
std::string    seperator = " \t\n",
int    max = -1
) 
 

splits a string.

string_list Strings::split_string (  std::string    str,
std::string    seperator = " ",
int    max = -1
) 
 

splits a string by using a fixed seperator string.

std::string Strings::strip (  const std::string &    str,
const std::string &    what = " \t\0\n"
) 
 

strips a string.

std::string Strings::substitude (  std::string    str,
std::string    what,
std::string    with,
std::string    ignore
) 
 

std::string Strings::substitude (  std::string    str,
std::string    what,
std::string    with
) 
 

substitudes.

void Strings::toupper (  std::string &    s )  [inline]
 

converts a string to upper case.

template<class T>
std::string Strings::x2s (  T    what ) 
 

converts anything to a string.


Variable Documentation

bool Strings::old_macro_style
 

new or old macro substitution ?


Generated on Tue Nov 20 02:20:01 2001 for Leo<HTML> by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001