github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/job-specification/hcl2/functions/string/title.mdx (about)

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