Contents

JSStringCreateWithUTF8CString(_:)

Creates a JavaScript string from a null-terminated UTF-8 string.

Declaration

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

Parameters

  • string:

    The null-terminated UTF-8 string to copy into the new Jsstringref.

Return Value

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

See Also

Creating a JavaScript String