--- libgig/trunk/src/helper.h 2019/02/23 15:40:22 3483 +++ libgig/trunk/src/helper.h 2019/02/23 16:12:08 3484 @@ -317,6 +317,15 @@ } } + +/***************************************************************************** + * Any problems with any of the following helper functions? * + * * + * Then please first have a look at their current TEST CASES at * + * src/testcases/HelperTest.cpp as basis for your modifications! * + *****************************************************************************/ + + /// Removes one or more consecutive occurences of @a needle from the end of @a haystack. inline std::string strip2ndFromEndOf1st(const std::string haystack, char needle) { if (haystack.empty()) return haystack; @@ -342,7 +351,6 @@ inline std::string parentPath(const std::string path) { if (path.empty()) return path; std::string s = strip2ndFromEndOf1st(path, NATIVE_PATH_SEPARATOR); - printf("\tstrip('%s') => '%s'\n", path.c_str(), s.c_str()); if (s.empty()) { s.push_back(NATIVE_PATH_SEPARATOR); // i.e. return "/" return s;