Function: upcase

upcase is a function defined in casefiddle.c.

Signature

(upcase OBJ)

Documentation

Convert argument to upper case and return that.

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. See also capitalize, downcase and upcase-initials.

Other relevant functions are documented in the string group.

Probably introduced at or before Emacs version 21.1.

Shortdoc

;; string
(upcase "foo")
    => "FOO"

Source Code

// Defined in /usr/src/emacs/src/casefiddle.c
{
  return casify_object (CASE_UP, obj);
}