Skip to main content
upper(str) returns a copy of str with all letters converted to uppercase.

Signature

Example

Normalize an environment name to uppercase for use as a configuration key prefix:
staging becomes STAGING.

Notes

  • upper converts all Unicode letters, not just ASCII.
  • Pair upper with other string functions to build identifiers or keys that follow uppercase conventions.