Write a function, ImprovedContains, that takes three arguments: a string representing the text to search, a string representing the pattern to search for, and a pointer to bool that represents if the search should be case insensitive. This function should return true if the pattern is found in the text, false otherwise.

New Download