From 8f79fbabdc2c09130a8ba5f2b32aba458e52cf73 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 11 Dec 2008 17:29:50 +0000 Subject: - added strtoupper() wrapper --- program/include/rcube_shared.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'program') diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index b0eabc420..244225ca9 100644 --- a/program/include/rcube_shared.inc +++ b/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