You are here

function drupal_ucfirst in Drupal 5

Same name and namespace in other branches
  1. 4 includes/unicode.inc \drupal_ucfirst()
  2. 6 includes/unicode.inc \drupal_ucfirst()
  3. 7 includes/unicode.inc \drupal_ucfirst()

Capitalize the first letter of a UTF-8 string.

6 calls to drupal_ucfirst()
comment.tpl.php in themes/garland/comment.tpl.php
node_add in modules/node/node.module
Present a node submission form or a set of links to such forms.
node_menu in modules/node/node.module
Implementation of hook_menu().
system_modules in modules/system/system.module
Menu callback; provides module enable/disable interface.
system_modules_confirm_form in modules/system/system.module

... See full list

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