summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_shared.inc11
1 files changed, 11 insertions, 0 deletions
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
@@ -362,6 +362,17 @@ function rc_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
*/
function rc_substr($str, $start, $len=null)