bool FBullCowGame::IsLowercase(FString Word) const {
// For all letters of the word
for (auto Letter : Word) {
// If the letter is not lowercase...
if (Letter >= 'A' && Letter <= 'Z') {
return false;
}
}
return true;
}
Here is my IsLowercase() function - it works for all the inputs that were suggested, although it doesn’t make use of islower()…