Bool StringIsDigitOrUpper(char *s) { while (*s) { if ((!Char_isdigit(*s)) && (!CharIsUpper(*s))) return(0); s++; } return(1); }
Bool StringIsAllUpper(char *s) { while (*s) { if (!CharIsUpper(*((uc *)s))) return(0); s++; } return(1); }
/* ============ idStr::HasUpper Checks if a string has any uppercase chars ============ */ bool idStr::HasUpper( const char *s ) { if ( !s ) { return false; } while ( *s ) { if ( CharIsUpper( *s ) ) { return true; } s++; } return false; }