drupal_strtolower
includes/unicode.inc, строка 431
- Версии
- 5 – 6
drupal_strtolower($text)
Преобразовывает UTF-8 строку в нижний регистр.
Код
<?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;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии