From ab468baa9e5619d9691ee190be2a35fe6dd54e15 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 31 Dec 2005 14:32:23 +0000 Subject: - Removing trailing spaces --- includes/unicode.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/unicode.inc') diff --git a/includes/unicode.inc b/includes/unicode.inc index 0c562a8c1..f0e302343 100644 --- a/includes/unicode.inc +++ b/includes/unicode.inc @@ -59,7 +59,7 @@ function _unicode_check($errors = false) { form_set_error('unicode', t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentation for more information.', array('%url' => 'http://www.php.net/mbstring'))); } return UNICODE_ERROR; - } + } if (ini_get('mbstring.http_output') != 'pass') { if ($errors) { form_set_error('unicode', t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_output setting. Please refer to the PHP mbstring documentation for more information.', array('%url' => 'http://www.php.net/mbstring'))); @@ -81,7 +81,7 @@ function unicode_settings() { $options = array(UNICODE_SINGLEBYTE => t('Standard PHP: operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.', array('%url' => 'http://www.php.net/mbstring')), UNICODE_MULTIBYTE => t('Multi-byte: operations on Unicode strings are supported through the PHP mbstring extension.', array('%url' => 'http://www.php.net/mbstring')), UNICODE_ERROR => t('Invalid: the current configuration is incompatible with Drupal.')); - $form['settings'] = array('#type' => 'item', '#title' =>t('String handling method'), '#value' => $options[$status]); + $form['settings'] = array('#type' => 'item', '#title' =>t('String handling method'), '#value' => $options[$status]); return $form; } @@ -355,7 +355,7 @@ function drupal_strlen($text) { */ function drupal_strtoupper($text) { global $multibyte; - if ($multibyte == UNICODE_MULTIBYTE) { + if ($multibyte == UNICODE_MULTIBYTE) { return mb_strtoupper($text); } else { @@ -364,7 +364,7 @@ function drupal_strtoupper($text) { // Case flip Latin-1 accented letters $text = preg_replace_callback('/\xC3[\xA0-\xB6\xB8-\xBE]/', '_unicode_caseflip', $text); return $text; - } + } } /** @@ -381,7 +381,7 @@ function drupal_strtolower($text) { // Case flip Latin-1 accented letters $text = preg_replace_callback('/\xC3[\x80-\x96\x98-\x9E]/', '_unicode_caseflip', $text); return $text; - } + } } /** @@ -476,7 +476,7 @@ function drupal_substr($text, $start, $length = NULL) { $iend = $bytes; return substr($text, $istart, max(0, $iend - $istart + 1)); - } + } } -- cgit v1.2.3