![]() |
Cytopia
0.3
A city building simulation game
|
Functions | |
void | removeSubString (std::string &string, const std::string &stringToRemove) |
Erase first occurrence of given substring from main string. More... | |
bool | endsWith (const std::string &mainStr, const std::string &toMatch) |
checks if a string ends with a certain substring More... | |
bool | startsWith (const std::string &mainStr, const std::string &toMatch) |
checks if a string starts with a certain substring More... | |
bool utils::strings::endsWith | ( | const std::string & | mainStr, |
const std::string & | toMatch | ||
) |
checks if a string ends with a certain substring
mainStr | string to scan through |
toMatch | substring to search for |
void utils::strings::removeSubString | ( | std::string & | string, |
const std::string & | stringToRemove | ||
) |
Erase first occurrence of given substring from main string.
string | main string to modify |
stringToRemove | substring to remove |
bool utils::strings::startsWith | ( | const std::string & | mainStr, |
const std::string & | toMatch | ||
) |
checks if a string starts with a certain substring
mainStr | string to scan through |
toMatch | substring to search for |