Function mrpt::system::nthOccurrence

Function Documentation

size_t mrpt::system::nthOccurrence(const std::string &str, const std::string &strToFind, size_t nth)

Finds the position of the n-th occurrence of the given substring, or std::string::npos if it does not happen.

Note

New in MRPT 2.3.2