This function compares a part of a buffer to an indirect string (ist), ignoring the case of the characters.