drupal_strtoupper

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/unicode.inc, строка 380

Версии
5 – 6
drupal_strtoupper($text)

Преобразовывает UTF-8 строку в верхний регистр.

▾ 2 функции вызывают drupal_strtoupper()

drupal_ucfirst in includes/unicode.inc
Capitalize the first letter of a UTF-8 string.
tablesort_sql in includes/tablesort.inc
Создает сортировочную часть SQL запроса.

Код

<?php
function drupal_strtoupper($text) {
  global $multibyte;
  if ($multibyte == UNICODE_MULTIBYTE) {
    return mb_strtoupper($text);
  }
  else {
    // Use C-locale for ASCII-only uppercase
    $text = strtoupper($text);
    // Case flip Latin-1 accented letters
    $text = preg_replace_callback('/\xC3[\xA0-\xB6\xB8-\xBE]/', '_unicode_caseflip', $text);
    return $text;
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему