Changeset 19059 in webkit for trunk/JavaScriptCore/API/JSStringRef.h
- Timestamp:
- Jan 23, 2007, 2:23:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSStringRef.h
r15497 r19059 35 35 #ifdef __cplusplus 36 36 extern "C" { 37 #endif 38 39 #if defined(__APPLE__) 40 #include "JSStringRefCF.h" 37 41 #endif 38 42 … … 137 141 bool JSStringIsEqualToUTF8CString(JSStringRef a, const char* b); 138 142 139 #if defined(__APPLE__)140 #include <CoreFoundation/CoreFoundation.h>141 // CFString convenience methods142 /*!143 @function144 @abstract Creates a JavaScript string from a CFString.145 @discussion This function is optimized to take advantage of cases when146 CFStringGetCharactersPtr returns a valid pointer.147 @param string The CFString to copy into the new JSString.148 @result A JSString containing string. Ownership follows the Create Rule.149 */150 JSStringRef JSStringCreateWithCFString(CFStringRef string);151 /*!152 @function153 @abstract Creates a CFString from a JavaScript string.154 @param alloc The alloc parameter to pass to CFStringCreate.155 @param string The JSString to copy into the new CFString.156 @result A CFString containing string. Ownership follows the Create Rule.157 */158 CFStringRef JSStringCopyCFString(CFAllocatorRef alloc, JSStringRef string);159 #endif // __APPLE__160 161 143 #ifdef __cplusplus 162 144 }
Note:
See TracChangeset
for help on using the changeset viewer.