CFURLCopyQueryString(_:_:)
Returns the query string of a given URL.
Declaration
func CFURLCopyQueryString(_ anURL: CFURL!, _ charactersToLeaveEscaped: CFString!) -> CFString!Parameters
- anURL:
The
CFURLobject to examine. - charactersToLeaveEscaped:
Characters whose percent escape sequences, such as
%20for a space character, you want to leave intact. PassNULLto specify that no percent escapes be replaced, or the empty string (CFSTR("")) to specify that all be replaced.
Return Value
The query string, or NULL if no parameter string exists. Ownership follows the create rule. See The Create Rule.
Discussion
This function removes all percent escape sequences except those for characters specified in charactersToLeaveEscaped.
See Also
Accessing the Parts of a URL
CFURLCanBeDecomposed(_:)CFURLCopyFileSystemPath(_:_:)CFURLCopyFragment(_:_:)CFURLCopyHostName(_:)CFURLCopyLastPathComponent(_:)CFURLCopyNetLocation(_:)CFURLCopyParameterString(_:_:)CFURLCopyPassword(_:)CFURLCopyPath(_:)CFURLCopyPathExtension(_:)CFURLCopyResourceSpecifier(_:)CFURLCopyScheme(_:)CFURLCopyStrictPath(_:_:)CFURLCopyUserName(_:)CFURLGetPortNumber(_:)