I may misunderstand your query but to me this looks like two steps.
- Convert the string to lowercase. Example: https://thispointer.com/converting-a-string-to-upper-lower-case-in-c-using-stl-boost-library/
- See if the word (string) is in the string. Example: https://www.cplusplus.com/reference/cstring/