stringutil.cpp File Reference

#include "config.h"
#include "stringutil.h"
#include <cctype>
#include <sstream>
#include <cstdio>

Functions

string lowercase (const string &s)
string toString (bool b)
string toString (int n)
string toString (unsigned n)
string toString (double n)
double toDouble (const string &s)
bool toBool (const std::string &s)
unsigned long toUnsignedLong (const std::string &s)
int toPosInt (const std::string &s)
unsigned toUnsigned (const std::string &s)
void splitString (const std::string &s, char delim, std::vector< std::string > &v)
std::string stripTrailingWS (const std::string &s)
std::string stripLeadingWS (const std::string &s)
std::string stripLineComment (const std::string &s, char delim)
std::string stripApostrophe (const std::string &s)

Function Documentation

string lowercase const string &  s  ) 
 

void splitString const std::string &  s,
char  delim,
std::vector< std::string > &  v
 

std::string stripApostrophe const std::string &  s  ) 
 

std::string stripLeadingWS const std::string &  s  ) 
 

std::string stripLineComment const std::string &  s,
char  delim
 

std::string stripTrailingWS const std::string &  s  ) 
 

bool toBool const std::string &  s  ) 
 

double toDouble const string &  s  ) 
 

int toPosInt const std::string &  s  ) 
 

string toString double  n  ) 
 

string toString unsigned  n  ) 
 

string toString int  n  ) 
 

string toString bool  b  ) 
 

unsigned toUnsigned const std::string &  s  ) 
 

unsigned long toUnsignedLong const std::string &  s  ) 
 


Generated on Mon Mar 27 09:27:19 2006 for Powersave Daemon by  doxygen 1.4.6