Example #1
0
 /**
  * Returns true if every character in the parameter is an uppercase letter
  * in the current locale.
  *
  * @param string $string The string to test.
  * @param string $charset The charset to use when testing the string.
  *
  * @return boolean  True if the parameter was uppercase.
  */
 public function isUpper($string, $charset = null)
 {
     return Horde_String::upper($string, true, $charset) === $string && Horde_String::isAlpha($string, $charset);
 }