gxPL  1.0
Tools, Application and Framework for xPL
Text functions

Detailed Description

Collaboration diagram for Text functions:

Functions

const char * gxPLDoubleToStr (double value, int precision)
 Quickly to convert an double to string. More...
 
const char * gxPLLongToStr (long value)
 Quickly to convert an long integer to string. More...
 
int gxPLStrCpy (char *dst, const char *src)
 Copy string in accordance with xPL. More...
 

Function Documentation

const char* gxPLDoubleToStr ( double  value,
int  precision 
)

Quickly to convert an double to string.

Parameters
value
precision(8 max)
Returns
a static const string
const char* gxPLLongToStr ( long  value)

Quickly to convert an long integer to string.

Parameters
value
Returns
a static const string
int gxPLStrCpy ( char *  dst,
const char *  src 
)

Copy string in accordance with xPL.

Copies the C string pointed by src into the array pointed by dst, including the terminating null character (and stopping at that point). src must contain only the following characters: A-Z, a-z, 0-9 and "-" (letters, numbers and the hyphen/dash character - ASCII 45). If this is not the case, the copying is interrupted and -1 is returned.

Parameters
dstThis is the pointer to an array of char elements where the resulting C string is stored.
srcsource string
Returns
If successful, the total number of characters written is returned excluding the null-character appended at the end of the string, otherwise a negative number is returned in case of failure.