Contents

JSStringCreateWithCFString(_:)

Creates a JavaScript string from a Core Foundation string.

Declaration

func JSStringCreateWithCFString(_ string: CFString!) -> JSStringRef!

Parameters

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.

See Also

Converting to and from Core Foundation Strings