From 3a01c25a5bc004ed758c4852cfc1f888fbec5b12 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 11 Dec 2008 17:29:50 +0000 Subject: - added strtoupper() wrapper git-svn-id: https://svn.roundcube.net/trunk@2147 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_shared.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc index b0eabc420..244225ca9 100644 --- a/roundcubemail/program/include/rcube_shared.inc +++ b/roundcubemail/program/include/rcube_shared.inc @@ -361,6 +361,17 @@ function rc_strtolower($str) return strtolower($str); } +/** + * Wrapper function for strtoupper + */ +function rc_strtoupper($str) +{ + if (function_exists('mb_strtoupper')) + return mb_strtoupper($str); + else + return strtoupper($str); +} + /** * Wrapper function for substr */ -- cgit v1.2.3