bool FBullCowGame::IsLowerCase(FString Word) const
{
// loop through word
for (auto Letter : Word) {
if (!islower(Letter)) { // if letter is not lower case
return false; }
}
return true; // assumed if reaching this point all letters have been checked for validity
}
testing with \0 as an entry as well as a space returns the note of “please enter your word in all lower case”