function drupal_strtolower

Lowercase a UTF-8 string.

Related topics

68 calls to drupal_strtolower()
block_block_list_alter in drupal/core/modules/block/block.module
Implements hook_block_list_alter().
book_export in drupal/core/modules/book/book.pages.inc
Page callback: Generates representations of a book page and its children.
BreakpointAPITest::testConfigName in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointAPITest.php
Test Breakpoint::buildConfigName().
BreakpointCRUDTest::testBreakpointCRUD in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
Test CRUD operations for breakpoints.
BreakpointGroupAPITest::testConfigName in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointGroupAPITest.php
Test Breakpoint::buildConfigName().

... See full list

File

drupal/core/includes/unicode.inc, line 432

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