Function

JSStringCreateWithUTF8CString(_:)

Creates a JavaScript string from a null-terminated UTF8 string.

Declaration

func JSStringCreateWithUTF8CString(_ string: UnsafePointer<Int8>!) -> JSStringRef!

Parameters

string

The null-terminated UTF8 string to copy into the new JSString.

Return Value

A JSString containing string. Ownership follows the Create Rule.