diff options
author | alecpl <alec@alec.pl> | 2008-12-11 17:29:50 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-12-11 17:29:50 +0000 |
commit | 8f79fbabdc2c09130a8ba5f2b32aba458e52cf73 (patch) | |
tree | 9b12c01b0b3126ae4fe16d709e10d9b4238bfae3 /program/include | |
parent | bfcef678a8d8e65b62e65f7b48be4b99557f44cb (diff) |
- added strtoupper() wrapper
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_shared.inc | 11 |
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) |