function drupal_strtolower

7.x unicode.inc drupal_strtolower($text)
6.x unicode.inc drupal_strtolower($text)

Lowercase a UTF-8 string.

8 calls to drupal_strtolower()
book_export in drupal-6.x/modules/book/book.pages.inc
Menu callback; Generates various representation of a book page and its children.
parse_size in drupal-6.x/includes/common.inc
Parse a given byte count.
search_index in drupal-6.x/modules/search/search.module
Update the full-text search index for a particular item.
search_simplify in drupal-6.x/modules/search/search.module
Simplifies a string according to indexing rules.
system_admin_menu_block in drupal-6.x/modules/system/system.module
Provide a single block on the administration overview page.

... See full list

File

drupal-6.x/includes/unicode.inc, line 437

Code

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;
  }
}