Contents

JSStringCopyCFString(_:_:)

Creates a Core Foundation string from a JavaScript string.

Declaration

func JSStringCopyCFString(_ alloc: CFAllocator!, _ string: JSStringRef!) -> CFString!

Parameters

  • alloc:

    The alloc parameter to pass to CFStringCreate.

  • string:

    The Jsstringref to copy into the new Cfstring.

Return Value

A CFString that contains string. Ownership follows The Create Rule.

See Also

Converting to and from Core Foundation Strings