pub unsafe extern "C-unwind" fn JSStringCopyCFString(
alloc: Option<&CFAllocator>,
string: JSStringRef,
) -> Option<CFRetained<CFString>>
Available on crate features
JSBase
and JSStringRefCF
and objc2-core-foundation
only.Expand description
Creates a CFString from a JavaScript string.
Parameter alloc
: The alloc parameter to pass to CFStringCreate.
Parameter string
: The JSString to copy into the new CFString.
Returns: A CFString containing string. Ownership follows the Create Rule.