The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
util.cpp File Reference

String-routines - Templates for lexical_cast & lexical_cast_default. More...

#include "util.hpp"
#include <cstdlib>
Include dependency graph for util.cpp:

Go to the source code of this file.

Functions

template<>
size_t lexical_cast< size_t, const std::string & > (const std::string &a)
 
template<>
size_t lexical_cast< size_t, const char * > (const char *a)
 
template<>
size_t lexical_cast_default< size_t, const std::string & > (const std::string &a, size_t def)
 
template<>
size_t lexical_cast_default< size_t, const char * > (const char *a, size_t def)
 
template<>
long lexical_cast< long, const std::string & > (const std::string &a)
 
template<>
long lexical_cast< long, const char * > (const char *a)
 
template<>
long lexical_cast_default< long, const std::string & > (const std::string &a, long def)
 
template<>
long lexical_cast_default< long, const char * > (const char *a, long def)
 
template<>
int lexical_cast< int, const std::string & > (const std::string &a)
 
template<>
int lexical_cast< int, const char * > (const char *a)
 
template<>
int lexical_cast_default< int, const std::string & > (const std::string &a, int def)
 
template<>
int lexical_cast_default< int, const char * > (const char *a, int def)
 
template<>
double lexical_cast< double, const std::string & > (const std::string &a)
 
template<>
double lexical_cast< double, const char * > (const char *a)
 
template<>
double lexical_cast_default< double, const std::string & > (const std::string &a, double def)
 
template<>
double lexical_cast_default< double, const char * > (const char *a, double def)
 
template<>
float lexical_cast< float, const std::string & > (const std::string &a)
 
template<>
float lexical_cast< float, const char * > (const char *a)
 
template<>
float lexical_cast_default< float, const std::string & > (const std::string &a, float def)
 
template<>
float lexical_cast_default< float, const char * > (const char *a, float def)
 

Detailed Description

String-routines - Templates for lexical_cast & lexical_cast_default.

Definition in file util.cpp.

Function Documentation

template<>
double lexical_cast< double, const char * > ( const char *  a)

Definition at line 215 of file util.cpp.

template<>
double lexical_cast< double, const std::string & > ( const std::string a)

Definition at line 202 of file util.cpp.

template<>
float lexical_cast< float, const char * > ( const char *  a)

Definition at line 267 of file util.cpp.

template<>
float lexical_cast< float, const std::string & > ( const std::string a)

Definition at line 254 of file util.cpp.

template<>
int lexical_cast< int, const char * > ( const char *  a)

Definition at line 154 of file util.cpp.

template<>
int lexical_cast< int, const std::string & > ( const std::string a)

Definition at line 140 of file util.cpp.

template<>
long lexical_cast< long, const char * > ( const char *  a)

Definition at line 96 of file util.cpp.

template<>
long lexical_cast< long, const std::string & > ( const std::string a)

Definition at line 83 of file util.cpp.

template<>
size_t lexical_cast< size_t, const char * > ( const char *  a)

Definition at line 38 of file util.cpp.

template<>
size_t lexical_cast< size_t, const std::string & > ( const std::string a)

Definition at line 24 of file util.cpp.

template<>
double lexical_cast_default< double, const char * > ( const char *  a,
double  def 
)

Definition at line 241 of file util.cpp.

template<>
double lexical_cast_default< double, const std::string & > ( const std::string a,
double  def 
)

Definition at line 228 of file util.cpp.

template<>
float lexical_cast_default< float, const char * > ( const char *  a,
float  def 
)

Definition at line 292 of file util.cpp.

template<>
float lexical_cast_default< float, const std::string & > ( const std::string a,
float  def 
)

Definition at line 279 of file util.cpp.

template<>
int lexical_cast_default< int, const char * > ( const char *  a,
int  def 
)

Definition at line 185 of file util.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

template<>
int lexical_cast_default< int, const std::string & > ( const std::string a,
int  def 
)

Definition at line 168 of file util.cpp.

template<>
long lexical_cast_default< long, const char * > ( const char *  a,
long  def 
)

Definition at line 124 of file util.cpp.

template<>
long lexical_cast_default< long, const std::string & > ( const std::string a,
long  def 
)

Definition at line 108 of file util.cpp.

template<>
size_t lexical_cast_default< size_t, const char * > ( const char *  a,
size_t  def 
)

Definition at line 67 of file util.cpp.

template<>
size_t lexical_cast_default< size_t, const std::string & > ( const std::string a,
size_t  def 
)

Definition at line 51 of file util.cpp.