Esempio n. 1
0
Bool StringIsDigitOrUpper(char *s)
{
  while (*s) {
    if ((!Char_isdigit(*s)) && (!CharIsUpper(*s))) return(0);
    s++;
  }
  return(1);
}
Esempio n. 2
0
Bool StringIsAllUpper(char *s)
{
  while (*s) {
    if (!CharIsUpper(*((uc *)s))) return(0);
    s++;
  }
  return(1);
}
Esempio n. 3
0
/*
============
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;
}