$search

StrUtil.h File Reference

#include <sstream>
#include <iomanip>
Include dependency graph for StrUtil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string itoa (int value, int base)
char * itoa (int value, char *result, int base)
std::string NumToString (const double d, unsigned int width=16, unsigned int precise=12)
std::string NumToString (const float f, unsigned int width=10, unsigned int precise=7)
std::string NumToString (const long l)
std::string NumToString (const unsigned int n)
std::string NumToString (const int n)
std::string StringToLower (std::string strToConvert)
std::string StringToUpper (std::string strToConvert)

Function Documentation

std::string itoa ( int  value,
int  base 
)

C++ version std::string style "itoa": Convert the number to a string.

Parameters:
value The value to be converted.
base The num base which has to be in the range 2 .. 16.
Returns:
The converted result. If an error occured, the result is a null pointer.

C++ version std::string style "itoa":

Definition at line 133 of file StrUtil.cpp.

char* itoa ( int  value,
char *  result,
int  base 
)

C++ version char* style "itoa": Convert the number to a char*

Parameters:
value The value to be converted.
result The char pointer to contain the result.
base The num base which has to be in the range 2 .. 16.
Returns:
The converted result. If an error occured, the result is a null pointer.

C++ version char* style "itoa":

Definition at line 106 of file StrUtil.cpp.

std::string NumToString ( const double  d,
unsigned int  width = 16,
unsigned int  precise = 12 
)

convert the number to a string

Parameters:
d the double precise number to be converted
width format of the width of the number, default = 16
precise format of the precise of the number, default = 12

Definition at line 97 of file StrUtil.cpp.

std::string NumToString ( const float  f,
unsigned int  width = 10,
unsigned int  precise = 7 
)

convert the number to a string

Parameters:
f the float point number to be converted
width format of the width of the floating number, default = 10
precise format of the precise of the floating number, default = 7

Definition at line 91 of file StrUtil.cpp.

std::string NumToString ( const long  l  ) 

convert the number to a string

Parameters:
l the long integer number to be converted

Definition at line 85 of file StrUtil.cpp.

std::string NumToString ( const unsigned int  n  ) 

convert the number to a string

Parameters:
n the unsigned integer number to be converted

Definition at line 79 of file StrUtil.cpp.

std::string NumToString ( const int  n  ) 

convert the number to a string

Parameters:
n the integer number to be converted

Definition at line 73 of file StrUtil.cpp.

std::string StringToLower ( std::string  strToConvert  ) 

change the string to lower case

Parameters:
strToConvert the string to be converted

Definition at line 65 of file StrUtil.cpp.

std::string StringToUpper ( std::string  strToConvert  ) 

change the string to upper case

Parameters:
strToConvert the string to be converted

Definition at line 57 of file StrUtil.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


cob_relayboard
Author(s): Christian Connette
autogenerated on Fri Mar 1 14:47:40 2013