CFURLCopyScheme(_:)
Returns the scheme portion of a given URL.
Declaration
func CFURLCopyScheme(_ anURL: CFURL!) -> CFString!Parameters
- anURL:
The
CFURLobject to examine.
Return Value
The scheme of anURL. Ownership follows the create rule. See The Create Rule.
Discussion
The URL scheme is the portion of the URL specifying the transport type. For example http, ftp, and rtsp are schemes. This function leaves any percent escape sequences intact.
See Also
Accessing the Parts of a URL
CFURLCanBeDecomposed(_:)CFURLCopyFileSystemPath(_:_:)CFURLCopyFragment(_:_:)CFURLCopyHostName(_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyQueryString(_:_:)CFURLCopyResourceSpecifier(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)CFURLGetPortNumber(_:)