#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. |
std::string int2string | ( | int | num | ) |
Translates a given integer to string.
num | The integer to translate. |
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.
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) |
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.
stringValue | The string to translate. |
Definition at line 44 of file myTools.cpp.
std::string upcase | ( | std::string | val | ) |
Translates a given string to upcase letters.
val | The string to translate. |
Definition at line 60 of file myTools.cpp.