JSStringRefCF.h

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

Overview

Use the links in the table of contents to the left to access the documentation.



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.

JS_EXPORT 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.

JS_EXPORT 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 It's good, but... Not helpful...

 

Last Updated: 2009-08-12