I am trying to use the replace function to replace uppercase letters with lowercase ones. The way I was trying to do it was that when the letter being checked is between ASCII values 65-90, it would be replaced with the character that is 32 ASCII values higher, for example, 65 would be turned to 97 (A to a).
char holder = (userPhrase[count]) + 32;
jumbledPhrase.replace(count, 1, holder);
The point of the variable holder to hold the new value to be used in replace, I am getting an error saying holder does not count as a char parameter in the replace function. Can replace even be used in the way I am trying to use it?