|
Mac Dev Center
Mac OS X Reference Library Networking, Internet, & Web JavaScriptCore Framework Reference
|
JSStringRefCF.h |
| Includes: | "JSBase.h" <CoreFoundation/CoreFoundation.h> |
Use the links in the table of contents to the left to access the documentation.
Creates a CFString from a JavaScript string.
Creates a JavaScript string from a CFString.
JSStringCopyCFString |
Creates a CFString from a JavaScript string.
JS_EXPORT CFStringRef JSStringCopyCFString( CFAllocatorRef alloc, JSStringRef string);
allocThe alloc parameter to pass to CFStringCreate.
stringThe JSString to copy into the new CFString.
A CFString containing string. Ownership follows the Create Rule.
JSStringCreateWithCFString |
Creates a JavaScript string from a CFString.
JS_EXPORT JSStringRef JSStringCreateWithCFString( CFStringRef string);
stringThe CFString to copy into the new JSString.
A JSString containing string. Ownership follows the Create Rule.
This function is optimized to take advantage of cases when CFStringGetCharactersPtr returns a valid pointer.
Last Updated: 2009-08-12