Contents

CFURLCreateWithString(_:_:_:)

Creates a CFURL object using a given CFString object.

Declaration

func CFURLCreateWithString(_ allocator: CFAllocator!, _ URLString: CFString!, _ baseURL: CFURL!) -> CFURL!

Parameters

  • allocator:

    The allocator to use to allocate memory for the new CFURL object. Pass NULL or Kcfallocatordefault to use the current default allocator.

  • URLString:

    The CFString object containing the URL string.

  • baseURL:

    The URL to which URLString is relative. Pass NULL if URLString contains an absolute URL or if you want to create a relative URL. If URLString contains an absolute URL, baseURL is ignored.

Return Value

A new CFURL object. Ownership follows the create rule. See The Create Rule.

Discussion

Any escape sequences in URLString will be interpreted using UTF-8.

See Also

Creating a CFURL