/** * UTF8 version of PHP::strtoupper() * * Convert a string to upper case, using the rules from the current locale * * @param string $string * * @return string */ public static function strtoupper($string) { if (self::$locale->language()->code() === 'tr' || self::$locale->language()->code() === 'az') { return TurkishUtf8::strtoupper($string); } else { return mb_strtoupper($string); } }
/** * UTF8 version of PHP::strtolower() * * Convert a string to lower case, using the rules from the current locale * * @param string $string * * @return string */ public static function strtolower($string) { if (self::$locale == 'tr' || self::$locale == 'az') { return TurkishUtf8::strtolower($string); } else { return mb_strtolower($string); } }