1"use strict";(globalThis.webpackChunkwebsite=globalThis.webpackChunkwebsite||[]).push([[3808],{53581(e,n,t){t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>s,toc:()=>a});let s=JSON.parse('{"id":"language/functions/upper","title":"upper Function","description":"The upper function converts all cased letters in the given string to uppercase.","source":"@site/versioned_docs/version-v1.7/language/functions/upper.mdx","sourceDirName":"language/functions","slug":"/language/functions/upper","permalink":"/docs/v1.7/language/functions/upper","draft":false,"unlisted":false,"editUrl":"https://github.com/opentofu/opentofu/edit/v1.7/website/docs/language/functions/upper.mdx","tags":[],"version":"v1.7","frontMatter":{"sidebar_label":"upper","description":"The upper function converts all cased letters in the given string to uppercase."},"sidebar":"docs","previous":{"title":"type","permalink":"/docs/v1.7/language/functions/type"},"next":{"title":"urldecode","permalink":"/docs/v1.7/language/functions/urldecode"}}');var r=t(74848),i=t(28453);let l={sidebar_label:"upper",description:"The upper function converts all cased letters in the given string to uppercase."},o="upper Function",c={},a=[{value:"Examples",id:"examples",level:2},{value:"Related Functions",id:"related-functions",level:2}];function u(e){let n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsxs)(n.h1,{id:"upper-function",children:[(0,r.jsx)(n.code,{children:"upper"})," Function"]})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"upper"})," converts all cased letters in the given string to uppercase."]}),"\n",(0,r.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'> upper("hello")\nHELLO\n> upper("\u0430\u043B\u043B\u043E!")\n\u0410\u041B\u041B\u041E!\n'})}),"\n",(0,r.jsx)(n.p,{children:"This function uses Unicode's definition of letters and of upper- and lowercase."}),"\n",(0,r.jsx)(n.h2,{id:"related-functions",children:"Related Functions"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/v1.7/language/functions/lower",children:(0,r.jsx)(n.code,{children:"lower"})})," converts letters in a string to ",(0,r.jsx)(n.em,{children:"lowercase"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/v1.7/language/functions/title",children:(0,r.jsx)(n.code,{children:"title"})})," converts the first letter of each word in a string to uppercase."]}),"\n"]})]})}function p(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},28453(e,n,t){t.d(n,{R:()=>l,x:()=>o});var s=t(96540);let r={},i=s.createContext(r);function l(e){let n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:l(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.