Return true if the passed value is all lower or all upper case.
350787
public static boolean isUniCase(String value) {
        if (value.toLowerCase().equals(value) || value.toUpperCase().equals(value)) {
            return true;
        }
        return false;
    }
949931
public static boolean isUpperCase(final String value) {
        validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
        for (int i = 0; i < value.length(); i++) {
            if (Character.isLowerCase(value.charAt(i))) {
                return false;
            }
        }
        return true;
    }
1371248
def istrue(self, *args):
        
        def is_true(val):
            if val is True:
                return True
            val = str(val).lower().strip()
            return val in ('true', 'yes', '1')
        return all(self._arg_factory(is_true, args))
831508
def asbool(s):
    
    if s is None:
        return False
    if isinstance(s, bool):
        return s
    s = str(s).strip()
    return s.lower() in truthy
801592
def lowercase(text_string):
    '''
    
    '''
    if text_string is None or text_string == "":
        return ""
    elif isinstance(text_string, str):
        return text_string.lower()
    else:
        raise InputError("string not passed as argument for text_string")
762947
public static boolean isCaseInsensitive()
  {
    Boolean value = _caseInsensitive.get();

    if (value == null) {
      return _isCaseInsensitive;
    }
    else
      return value.booleanValue();
  }
100492
def clean(self, value):
        """"""

        if isinstance(value, six.string_types) and value.lower() == 'false':
            return False

        return bool(value)
262425
function isCapitalized(value) {
  var char = (value.charAt ? value : value[0]).charAt(0)
  return char.toUpperCase() === char
}
61324
def values(self):
        
        lower = float(self.lowerSpnbx.value())
        upper = float(self.upperSpnbx.value())
        return (lower, upper)
633253
private function validateLowercaseLetter(): bool
    {
        if ($this->options['require-lowercase-letter'] === true) {
            if (!\preg_match('/[a-z]/u', (string)$this->value)) {
                $this->setError(self::VALIDATOR_ERROR_PASSWORD_MUST_CONTAIN_LOWERCASE_LETTER);
                return false;
            }
        }
        return true;
    }
845630
protected function evaluateUpperBound()
    {
        if (empty($this->upperBound)) {
            return null;
        }

        return $this->executeRule(
            new LessThan($this->getAttribute(), $this->getUpperBound(), $this->isUpperInclusive())
        );
    }
374392
def is_valid_interval(self, lower, upper):
        """"""
        try:
            lower_idx = self.data.index(lower)
            upper_idx = self.data.index(upper)
            return (lower_idx, upper_idx) if lower_idx <= upper_idx else False
        except ValueError:
            return False
862994
def _clip(value, lower, upper):
    
    return lower if value < lower else upper if value > upper else value
1236178
public static function isUpperCase($char): bool
    {
        self::handleIncomingChar($char);

        return static::compare($char, static::toUpperCase($char)) === 0;
    }
337306
public static boolean isUpperCase(final String txt) {
		boolean upper = true;
		for (final char c : txt.toCharArray()) {
			if (Character.isLowerCase(c)) {
				upper = false;
				break;
			}
		}
		return upper;
	}
463923
function ensureUpperBound (range, maximum) {
  return function applyUpperBound (comparators) {
    var hasUpperBound = isBounded.comparators(comparators)
    if (hasUpperBound) return comparators
    var msg = printf(
      'Cannot determine major versions: ' +
      '"%s" is unbounded and ',
      range
    )
    if (maximum == null) {
      throw new Error(msg + 'no maximum was provided')
    }
    var upper = last(comparators)
    if (!upper.test(maximum)) {
      var explanation = printf('"%s" does not satisfy "%s"', maximum, upper.toString())
      throw new Error(msg + explanation)
    }
    return comparators.concat(new semver.Comparator('<=' + maximum))
  }
}
82331
def set_uppercase(self, uppercase):
        
        for row in self.rows:
            for key in row.keys:
                if type(key) == VKey:
                    if uppercase:
                        key.value = key.value.upper()
                    else:
                        key.value = key.value.lower()