D:/usuarios/rodrigof/svn/tdk/src/peer/components/utils/TdkTecUtils.h File Reference

#include <string>
#include "peer/components/control/types/TdkStringVector.h"
#include "TeCoord2D.h"

Functions

void TdkRelpaceStr (std::string &str, std::string old_str, std::string new_str)
 Implements the utils functions.
int TdkTecReplaceChar (std::string &str, char old_char, char new_char)
char * TdkTecRTrim (char *name)
char * TdkTecLTrim (char *name)
char * TdkTecTrim (char *name)
void fillTextVector (string text, TdkStringVector &textVector)
unsigned int TdkCeilLog2 (unsigned int x)
void pointInLine (TeCoord2D p1, TeCoord2D p2, double &x, double &y)
char * TdkExtractDir (const char *fname)

Function Documentation

void fillTextVector ( string  text,
TdkStringVector textVector 
)

void pointInLine ( TeCoord2D  p1,
TeCoord2D  p2,
double &  x,
double &  y 
)

unsigned int TdkCeilLog2 ( unsigned int  x  ) 

Fast method to compute lower integer number of which is bigger or equal to the logarithm of base 2 from the given number.

char* TdkExtractDir ( const char *  fname  ) 

char* TdkTecLTrim ( char *  name  ) 

Removes all the leading spaces from the given string.

int TdkTecReplaceChar ( std::string &  str,
char  old_char,
char  new_char 
)

Replaces in a string all the ocurrences of a given character by another given character.

char* TdkTecRTrim ( char *  name  ) 

Remove all the trailing spaces from the given string.

char * TdkTecTrim ( char *  name  )  [inline]

Removes all the leading and trailing spaces from the given string.


Generated on Fri Jun 15 16:54:20 2007 for TDK by  doxygen 1.5.2