Function HelperFunctions::string_pos¶
Defined in File HelperFunctions.h
Function Documentation¶
-
std::size_t HelperFunctions::string_pos(const std::string &haystack, const std::string &needle, unsigned int N)
Function which returns the position of the n-th occurence of a character in a string searching backwards. Returns -1 if no occurencies are found.
Source: http://stackoverflow.com/questions/18972258/index-of-nth-occurrence-of-the-string