Same name and namespace in other branches
- 4.7.x includes/unicode.inc \drupal_ucfirst()
- 6.x includes/unicode.inc \drupal_ucfirst()
- 7.x includes/unicode.inc \drupal_ucfirst()
Capitalize the first letter of a UTF-8 string.
4 calls to drupal_ucfirst()
- comment.tpl.php in themes/
garland/ comment.tpl.php - node_menu in modules/
node/ node.module - Implementation of hook_menu().
- system_modules_confirm_form in modules/
system/ system.module - theme_block_admin_display in modules/
block/ block.module - Theme main block administration form submission.
File
- includes/
unicode.inc, line 422
Code
function drupal_ucfirst($text) {
// Note: no mbstring equivalent!
return drupal_strtoupper(drupal_substr($text, 0, 1)) . drupal_substr($text, 1);
}