pub unsafe extern "C-unwind" fn JSStringCreateWithCFString(
string: &CFString,
) -> JSStringRef
Available on crate features
JSBase
and objc2-core-foundation
and JSStringRefCF
only.Expand description
Creates a JavaScript string from a CFString.
This function is optimized to take advantage of cases when CFStringGetCharactersPtr returns a valid pointer.
Parameter string
: The CFString to copy into the new JSString.
Returns: A JSString containing string. Ownership follows the Create Rule.