JSStringCreateWithCFString(_:)
Creates a JavaScript string from a Core Foundation string.
Declaration
func JSStringCreateWithCFString(_ string: CFString!) -> JSStringRef!Parameters
- string:
The Cfstring to copy into the new Jsstringref.
Return Value
A JSStringRef that contains string. Ownership follows The Create Rule.
Discussion
The system optimizes this function to take advantage of cases when CFStringGetCharactersPtr(_:) returns a valid pointer.