cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions
service.h File Reference
#include <string>
#include <vector>
Include dependency graph for service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


enum  split_mode { SPM_RELAX, SPM_KEEP_EMPTY, SPM_STRICT }


void trimTrailingWhiteSpace (std::string &str)
void trimTrailingWhiteSpace (char *str)
void Split (const std::string &str, const std::string &sep, std::vector< std::string > &lst, split_mode mode)
bool FindAndReplace (string &str, const string &substr, const string &newstr)
bool FindAndErase (string &str, const string &substr)
void service (double tau, double a, double beta)

Enumeration Type Documentation

enum split_mode

split_mode defines how the routine Split generates substrings SPM_RELAX: multiple adjacent separators will be coalesced into one this way you can never get an empty substring SPM_KEEP_EMPTY: multiple adjacent separators will result in empty substrings to be added to the list SPM_STRICT: empty substrings are illegal


Definition at line 16 of file service.h.

Function Documentation

bool FindAndErase ( string &  str,
const string &  substr 

Definition at line 39 of file service.h.

References FindAndReplace().

Here is the call graph for this function:

bool FindAndReplace ( string &  str,
const string &  substr,
const string &  newstr 

Definition at line 29 of file service.h.

Referenced by FindAndErase(), t_cpu_i::getMD5sums(), and t_cpu_i::t_cpu_i().

void service ( double  tau,
double  a,
double  beta 
void Split ( const std::string &  str,
const std::string &  sep,
std::vector< std::string > &  lst,
split_mode  mode 

Split: split a string into substrings using "sep" as separator

void trimTrailingWhiteSpace ( std::string &  str)
void trimTrailingWhiteSpace ( char *  str)

Definition at line 165 of file service.cpp.