Function: upcase-initials
upcase-initials is a function defined in casefiddle.c.
Signature
(upcase-initials OBJ)
Documentation
Convert the initial of each word in the argument to upper case.
This means that each word's first character is converted to either title case or upper case, and the rest are left unchanged. The argument may be a character or string. The result has the same type. The argument object is not altered--the value is a copy. If argument is a character, characters which map to multiple code points when cased, e.g. fi, are returned unchanged.
Other relevant functions are documented in the string group.
Probably introduced at or before Emacs version 26.1.
Shortdoc
;; string
(upcase-initials "The CAT in the hAt")
=> "The CAT In The HAt"
Source Code
// Defined in /usr/src/emacs/src/casefiddle.c
{
return casify_object (CASE_CAPITALIZE_UP, obj);
}