<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFStringCapitalize(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFStringCapitalize"
  },
  "title" : "CFStringCapitalize(_:_:)"
}
-->

# CFStringCapitalize(_:_:)

Changes the first character in each word of a string to uppercase (if it is a lowercase alphabetical character).

```
func CFStringCapitalize(_ theString: CFMutableString!, _ locale: CFLocale!)
```

## Parameters

`theString`

The string to be capitalized. If this value is not a CFMutableString object, an assertion is raised.

`locale`

A locale that specifies a particular language or region. Prior to OS X v10.3, this parameter was an untyped pointer and not used.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)