summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-12-11 17:29:50 +0000
committeralecpl <alec@alec.pl>2008-12-11 17:29:50 +0000
commit8f79fbabdc2c09130a8ba5f2b32aba458e52cf73 (patch)
tree9b12c01b0b3126ae4fe16d709e10d9b4238bfae3 /program
parentbfcef678a8d8e65b62e65f7b48be4b99557f44cb (diff)
- added strtoupper() wrapper
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)