1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5791],{87767:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>o,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>l});var r=n(85893),i=n(11151);const s={sidebar_position:20,description:"Convert a string into title case.",toc_max_heading_level:2},o="titlecase",c={id:"reference/utils/titlecase",title:"titlecase",description:"Convert a string into title case.",source:"@site/docs/reference/utils/titlecase.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/titlecase",permalink:"/docs/reference/utils/titlecase",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:20,frontMatter:{sidebar_position:20,description:"Convert a string into title case.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"capitalize",permalink:"/docs/reference/utils/capitalize"},next:{title:"short-heading",permalink:"/docs/reference/utils/short-heading"}},a={},l=[{value:"s : <TypeLink></TypeLink>",id:"s",level:3}];function d(e){const t={a:"a",h1:"h1",h3:"h3",p:"p",strong:"strong",...(0,i.a)(),...e.components},{Param:n,Parameters:s,Signature:o,SignatureName:c,SignatureParam:a,SourceLink:l,TypeLink:d}=t;return n||p("Param",!0),s||p("Parameters",!0),o||p("Signature",!0),c||p("SignatureName",!0),a||p("SignatureParam",!0),l||p("SourceLink",!0),d||p("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"titlecase",children:"titlecase"}),"\n",(0,r.jsx)(o,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(c,{children:"titlecase"}),"(",(0,r.jsx)(a,{children:(0,r.jsx)(t.a,{href:"#s",children:"s"})}),")",(0,r.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L477"})]})}),"\n",(0,r.jsx)(t.p,{children:"Convert a string into title case."}),"\n",(0,r.jsxs)(s,{children:[(0,r.jsxs)(t.h3,{id:"s",children:["s : ",(0,r.jsx)(d,{type:"str"})]}),(0,r.jsx)(n,{children:(0,r.jsx)(t.p,{children:"The string to convert."})})]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns:"})," ",(0,r.jsx)(d,{type:"str"})]})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}function p(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>c,a:()=>o});var r=n(67294);const i={},s=r.createContext(i);function o(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(s.Provider,{value:t},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.