Functions
rtconversions.cpp File Reference
#include "os/rtconversions.hpp"
#include <string>
#include <cstdio>
#include <cstdlib>
#include <stdio.h>
Include dependency graph for rtconversions.cpp:

Go to the source code of this file.

Functions

string float_to_string (float f)
 
string int_to_string (int i)
 
char string_to_char (const string &s)
 
int string_to_int (const string &s)
 
unsigned int string_to_unsigned_int (const string &s)
 
string unsigned_int_to_string (unsigned int u)
 

Function Documentation

string float_to_string ( float  f)

Definition at line 169 of file rtconversions.cpp.

string int_to_string ( int  i)

Definition at line 126 of file rtconversions.cpp.

char string_to_char ( const string &  s)

Definition at line 93 of file rtconversions.cpp.

int string_to_int ( const string &  s)

converts a string to an int

Parameters
sstring to be converted
Returns
the integer value of s
0 when faulty s found

Definition at line 55 of file rtconversions.cpp.

unsigned int string_to_unsigned_int ( const string &  s)

Definition at line 107 of file rtconversions.cpp.

string unsigned_int_to_string ( unsigned int  u)

Definition at line 195 of file rtconversions.cpp.



rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:39