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

#include <iostream>
#include <string>
#include <vector>

Include dependency graph for myTools.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
std::string int2string (int num)
 Translates a given integer to string.
int string2int (std::string stringValue)
 Translates a given string to an integer value.
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 Interface::load(), Level::load(), Unit::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