drupal_strtolower

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 7 drupal_strtolower($text)

Lowercase a UTF-8 string.

Related topics

▾ 45 functions call drupal_strtolower()

block_block_list_alter in modules/block/block.module
Implements hook_block_list_alter().
book_export in modules/book/book.pages.inc
Menu callback; Generates various representation of a book page and its children.
DatabaseSchema_pgsql::processField in includes/database/pgsql/schema.inc
Set database-engine specific properties for a field.
DrupalHtmlToTextTestCase::assertHtmlToText in modules/simpletest/tests/mail.test
Helper function for testing drupal_html_to_text().
drupal_html_class in includes/common.inc
Prepare a string for use as a valid class name.
drupal_html_id in includes/common.inc
Prepare a string for use as a valid HTML ID and guarantee uniqueness.
EntityFieldQueryTestCase::setUp in modules/simpletest/tests/entity_query.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
FieldAttachStorageTestCase::testFieldAttachCreateRenameBundle in modules/field/tests/field.test
Test field_attach_create_bundle() and field_attach_rename_bundle().
FieldAttachStorageTestCase::testFieldAttachDeleteBundle in modules/field/tests/field.test
Test field_attach_delete_bundle().
FieldAttachTestCase::setUp in modules/field/tests/field.test
Set the default field storage backend for fields created during tests.
FieldInfoTestCase::testFieldInfo in modules/field/tests/field.test
Test that field types and field definitions are correcly cached.
FieldInstanceCrudTestCase::setUp in modules/field/tests/field.test
Set the default field storage backend for fields created during tests.
FieldInstanceCrudTestCase::testCreateFieldInstance in modules/field/tests/field.test
Test the creation of a field instance.
FieldTranslationsTestCase::setUp in modules/field/tests/field.test
Set the default field storage backend for fields created during tests.
FieldTranslationsTestCase::testFieldAvailableLanguages in modules/field/tests/field.test
Ensures that only valid values are returned by field_available_languages().
FieldTranslationsTestCase::testFieldDisplayLanguage in modules/field/tests/field.test
Tests display language logic for translatable fields.
FileExampleSessionStreamWrapper::getMimeType in examples/file_example/file_example_session_streams.inc
Implements getMimeType().
FilterAdminTestCase::testFilterAdmin in modules/filter/filter.test
Test filter administration functionality.
FilterAdminTestCase::testFormatAdmin in modules/filter/filter.test
FilterDefaultFormatTestCase::testDefaultTextFormats in modules/filter/filter.test
FilterFormatAccessTestCase::setUp in modules/filter/filter.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
FilterHooksTestCase::testFilterHooks in modules/filter/filter.test
Test that hooks run correctly on creating, editing, and deleting a text format.
ForumTestCase::editForumTaxonomy in modules/forum/forum.test
Edit the forum taxonomy.
ImageExampleTestCase::testImageExample in examples/image_example/image_example.test
Test implementations of image API hooks.
NumberFieldTestCase::testNumberDecimalField in modules/field/modules/number/number.test
Test number_decimal field.
SearchTokenizerTestCase::testTokenizer in modules/search/search.test
Verifies that strings of CJK characters are tokenized.
search_index in modules/search/search.module
Update the full-text search index for a particular item.
search_simplify in modules/search/search.module
Simplifies a string according to indexing rules.
system_admin_menu_block in modules/system/system.module
Provide a single block on the administration overview page.
TaxonomyTermController::cacheGet in modules/taxonomy/taxonomy.module
Gets entities from the static cache.
TaxonomyTermFieldTestCase::setUp in modules/taxonomy/taxonomy.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
TaxonomyTermFieldTestCase::testTaxonomyTermFieldChangeMachineName in modules/taxonomy/taxonomy.test
Tests that vocabulary machine name changes are mirrored in field definitions.
TaxonomyVocabularyFunctionalTest::testTaxonomyAdminDeletingVocabulary in modules/taxonomy/taxonomy.test
Deleting a vocabulary.
TaxonomyVocabularyFunctionalTest::testVocabularyInterface in modules/taxonomy/taxonomy.test
Create, edit and delete a vocabulary via the user interface.
TaxonomyVocabularyUnitTest::testTaxonomyVocabularyChangeMachineName in modules/taxonomy/taxonomy.test
Tests that machine name changes are properly reflected.
TaxonomyVocabularyUnitTest::testUninstallReinstall in modules/taxonomy/taxonomy.test
Test uninstall and reinstall of the taxonomy module.
TaxonomyWebTestCase::createVocabulary in modules/taxonomy/taxonomy.test
Returns a new vocabulary with random properties.
taxonomy_autocomplete in modules/taxonomy/taxonomy.pages.inc
Helper function for autocompletion
TextFieldTestCase::testTextFieldValidation in modules/field/modules/text/text.test
Test text field validation.
TextFieldTestCase::_testTextfieldWidgets in modules/field/modules/text/text.test
Helper function for testTextfieldWidgets().
TextFieldTestCase::_testTextfieldWidgetsFormatted in modules/field/modules/text/text.test
Helper function for testTextfieldWidgetsFormatted().
theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.
TriggerOtherTestCase::testActionsTaxonomy in modules/trigger/trigger.test
Tests triggering on taxonomy new term.
UnicodeUnitTest::helperTestStrToLower in modules/simpletest/tests/unicode.test
_color_rewrite_stylesheet in modules/color/color.module
Rewrite the stylesheet to match the colors in the palette.

Code

includes/unicode.inc, line 473

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