github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/job-specification/hcl2/functions/string/upper.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: upper - Functions - Configuration Language
     4  description: >-
     5    The upper function converts all cased letters in the given string to
     6    uppercase.
     7  ---
     8  
     9  # `upper` Function
    10  
    11  `upper` converts all cased letters in the given string to uppercase.
    12  
    13  ## Examples
    14  
    15  ```shell-session
    16  > upper("hello")
    17  HELLO
    18  > upper("алло!")
    19  АЛЛО!
    20  ```
    21  
    22  This function uses Unicode's definition of letters and of upper- and lowercase.
    23  
    24  ## Related Functions
    25  
    26  - [`lower`](/docs/job-specification/hcl2/functions/string/lower) converts letters in a string to _lowercase_.
    27  - [`title`](/docs/job-specification/hcl2/functions/string/title) converts the first letter of each word in a string to uppercase.