ADC Home > Reference Library > Reference > Carbon > Internet & Web > JavaScriptCore Framework Reference

 


JSStringRefCF.h

Includes:
"JSBase.h"
<CoreFoundation/CoreFoundation.h>

Overview



Functions

JSStringCopyCFString
Creates a CFString from a JavaScript string.
JSStringCreateWithCFString
Creates a JavaScript string from a CFString.

JSStringCopyCFString


Creates a CFString from a JavaScript string.

CFStringRef JSStringCopyCFString(
    CFAllocatorRef alloc,
    JSStringRef string);  
Parameters
alloc
The alloc parameter to pass to CFStringCreate.
string
The JSString to copy into the new CFString.
Return Value

A CFString containing string. Ownership follows the Create Rule.


JSStringCreateWithCFString


Creates a JavaScript string from a CFString.

JSStringRef JSStringCreateWithCFString(
    CFStringRef string);  
Parameters
string
The CFString to copy into the new JSString.
Return Value

A JSString containing string. Ownership follows the Create Rule.

Discussion

This function is optimized to take advantage of cases when CFStringGetCharactersPtr returns a valid pointer.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2008-03-11