function drupal_strtoupper

Uppercase a UTF-8 string.

Related topics

7 calls to drupal_strtoupper()
drupal_ucfirst in drupal/core/includes/unicode.inc
Capitalize the first letter of a UTF-8 string.
HandlerBase::caseTransform in drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php
Transform a string by a certain method.
HtmlToTextTest::testDrupalHtmlToTextBlockTagToNewline in drupal/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php
Test that text separated by block-level tags in HTML get separated by (at least) a newline in the plaintext version.
Schema::processField in drupal/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
Set database-engine specific properties for a field.
Schema::processField in drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
Set database-engine specific properties for a field.

... See full list

1 string reference to 'drupal_strtoupper'
drupal_html_to_text in drupal/core/includes/mail.inc
Transforms an HTML string into plain text, preserving its structure.

File

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

Code

function drupal_strtoupper($text) {
  global $multibyte;
  if ($multibyte == UNICODE_MULTIBYTE) {
    return mb_strtoupper($text);
  }
  else {

    // Use C-locale for ASCII-only uppercase
    $text = strtoupper($text);

    // Case flip Latin-1 accented letters
    $text = preg_replace_callback('/\\xC3[\\xA0-\\xB6\\xB8-\\xBE]/', '_unicode_caseflip', $text);
    return $text;
  }
}