check if character is uppercase in c++ code example
Example 1: c++ check if string contains uppercase
#include <algorithm>
any_of(str.begin(), str.end(), isupper)
Example 2: check uppercase c++
char character = 'A'; //0100 0001
if((character & 0x20) == 0) {
//is uppercase
}
Example 3: check if character in string is uppercase c++
if (isupper(str[i])) {
// str[i] is uppercase
}