drupal_strtolower

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

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

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

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

▾ 6 функции вызывают drupal_strtolower()

book_export in modules/book/book.pages.inc
Menu callback; Generates various representation of a book page and its children.
parse_size in includes/common.inc
Parse a given byte count.
search_index in modules/search/search.module
Обновляет полнотекстовый поисковый индекс для указанного элемента.
search_simplify in modules/search/search.module
Simplifies a string according to indexing rules.
template_preprocess_page in includes/theme.inc
Обрабатывает переменные для page.tpl.php
_color_rewrite_stylesheet in modules/color/color.module
Rewrite the stylesheet to match the colors in the palette.

Код

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

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