Returns the fragment from a given URL.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
CFURLobject whose fragment you want to obtain.
Characters whose percent escape sequences, such as
%20for a space character, you want to leave intact. Pass
NULLto specify that no percent escapes be replaced, or the empty string (
CFSTR("")) to specify that all be replaced.
The fragment, or
NULL if no fragment exists. Ownership follows the create rule. See The Create Rule.
A fragment is the text following a "#". These are generally used to indicate locations within a single file. This function removes all percent escape sequences except those for characters specified in