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

# CFURLCanBeDecomposed(_:)

Determines if the given URL conforms to RFC 1808 and therefore can be decomposed.

```
func CFURLCanBeDecomposed(_ anURL: CFURL!) -> Bool
```

## Parameters

`anURL`

The `CFURL` object to test.

## Return Value

`true` if `anURL` conforms to RFC 1808, `false` otherwise.

## Discussion

If a `CFURL` object can be decomposed, you can retrieve separately each of the four components (scheme, net location, path, and resource specifier), as well as the base URL.

Relative URLs are permitted to have only paths (or a variety of other configurations); these are considered decomposable if their base URL is decomposable. If no base URL is present, they are considered decomposable.

---

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)