E:/Eigene Dateien/Eigene Projekte/c0re/myTools.cpp File Reference

#include "myTools.h"
#include <sstream>

Include dependency graph for myTools.cpp:

Go to the source code of this file.

Functions

int splitLine (std::vector< std::string > &pieces, std::string toSplit, std::string delimiter, bool ignDoubleDelim)
 Splits the given strings into seperate strings by the given seperator.
int string2int (std::string stringValue)
 Translates a given string to an integer value.
std::string int2string (int iValue)
 Translates a given integer to string.
std::string upcase (std::string val)
 Translates a given string to upcase letters.


Function Documentation

std::string int2string ( int  num  ) 

Translates a given integer to string.

Parameters:
num The integer to translate.
Returns:
The resulting string.

Definition at line 53 of file myTools.cpp.

int splitLine ( std::vector< std::string > &  pieces,
std::string  toSplit,
std::string  delimiter,
bool  ignDoubleDelim = false 
)

Splits the given strings into seperate strings by the given seperator.

Parameters:
pieces Array to store the substrings.
toSplit String to split.
delimiter String containing the deliming character.
ignDoubleDelim Flag that states wether to ignore doble delimiters or not. (default=no)
Returns:
0 for success.

Definition at line 25 of file myTools.cpp.

Referenced by Unit::load(), Level::load(), Interface::load(), and WinMain().

int string2int ( std::string  stringValue  ) 

Translates a given string to an integer value.

Parameters:
stringValue The string to translate.
Returns:
The integer value of the given string.

Definition at line 44 of file myTools.cpp.

std::string upcase ( std::string  val  ) 

Translates a given string to upcase letters.

Parameters:
val The string to translate.
Returns:
The upcase string.

Definition at line 60 of file myTools.cpp.


Generated on Tue Jul 17 22:02:22 2007 for C0re by  doxygen 1.5.2