Function Dune::XT::Common::highlight_search_string¶
-
std::string Dune::XT::Common::highlight_search_string(std::string str, std::string substr, size_t colornr = 0)¶
Highlights a substring of another string in a specified color.
:param str: The string where you want to highlight substrings. :param substr: The sub string you want to highlight in str. :param colornr: A color number from a 256 color map between 0 and 255. :returns: The highlighted string.