Newer
Older
*
* Created on: Apr 1, 2013
* Author: Jan Travnicek
*/
std::string to_string ( const std::string & value ) {
std::string from_string ( const std::string & value ) {
int from_string ( const std::string & value ) {
return std::stoi__private ( value.c_str() );
bool from_string ( const std::string & value ) {
if ( value == "true" || value == "1" )
return true;
else
return false;
}
long from_string ( const std::string & value ) {
return std::stol__private ( value.c_str() );
long long from_string ( const std::string & value ) {
return std::stoll__private ( value.c_str() );
unsigned from_string ( const std::string & value ) {
return std::stoul__private ( value.c_str() );
unsigned long from_string ( const std::string & value ) {
return std::stoul__private ( value.c_str() );
unsigned long long from_string ( const std::string & value ) {
return std::stoull__private ( value.c_str() );
double from_string ( const std::string & value ) {
return std::stod__private ( value.c_str() );
std::string cstringToString ( char * param ) {
std::string res ( param );