Full ELMS Learning Network documentation
function drupal_strtoupper
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 unicode.inc | drupal_strtoupper($text) |
cle7 unicode.inc | drupal_strtoupper($text) |
elmsmedia7 unicode.inc | drupal_strtoupper($text) |
icor7 unicode.inc | drupal_strtoupper($text) |
meedjum_blog7 unicode.inc | drupal_strtoupper($text) |
mooc7 unicode.inc | drupal_strtoupper($text) |
Uppercase a UTF-8 string.
Parameters
$text: The string to run the operation on.
Return value
string The string in uppercase.
Related topics
10 calls to drupal_strtoupper()
- advagg_admin_info_form in sites/
all/ modules/ ulmus/ advagg/ advagg.admin.inc - Form builder; Show info about advagg and advagg settings.
- DatabaseSchema_mysql::processField in includes/
database/ mysql/ schema.inc - Set database-engine specific properties for a field.
- DatabaseSchema_sqlite::processField in includes/
database/ sqlite/ schema.inc - Set database-engine specific properties for a field.
- drupal_ucfirst in includes/
unicode.inc - Capitalizes the first letter of a UTF-8 string.
- entity_token_token_info_alter in sites/
all/ modules/ ulmus/ entity/ entity_token.tokens.inc - Implements hook_token_info_alter().
1 string reference to 'drupal_strtoupper'
- drupal_html_to_text in includes/
mail.inc - Transforms an HTML string into plain text, preserving its structure.
File
- includes/
unicode.inc, line 497 - Provides Unicode-related conversions and operations.
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;
}
}