PLearn 0.1
Namespaces | Functions
lexical_cast.h File Reference
#include <string>
#include <plearn/io/openString.h>
Include dependency graph for lexical_cast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

double PLearn::pl_strtod (const char *nptr, char **endptr)
 Conversion from string to double or float.
float PLearn::pl_strtof (const char *nptr, char **endptr)
bool PLearn::pl_isnumber (const string &s, double *dbl=NULL)
 This function handles numbers with exponents (such as 10.2E09) as well as Nans.
bool PLearn::pl_isnumber (const string &str, float *dbl)
bool PLearn::pl_islong (const string &s)
long PLearn::tolong (const string &s, int base=10)
 conversions from string to numerical types
double PLearn::todouble (const string &s)
bool PLearn::tobool (const string &s)
float PLearn::tofloat (const string &s)
int PLearn::toint (const string &s, int base=10)
template<class T >
PLearn::lexical_cast (const string &str)
 Utility function to convert any string to a C++ object using the PStream deserialisation mechanism.

Detailed Description

Definition in file lexical_cast.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines