CFURLCanBeDecomposed(_:)
Determines if the given URL conforms to RFC 1808 and therefore can be decomposed.
Declaration
func CFURLCanBeDecomposed(_ anURL: CFURL!) -> BoolParameters
- anURL:
The
CFURLobject 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.
See Also
Accessing the Parts of a URL
CFURLCopyFileSystemPath(_:_:)CFURLCopyFragment(_:_:)CFURLCopyHostName(_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyQueryString(_:_:)CFURLCopyResourceSpecifier(_:)CFURLCopyScheme(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)CFURLGetPortNumber(_:)