Tools/DumpRenderTree/mg/WorkQueueItemMg.cpp
char* JSStringCopyUTF8CString(JSStringRef jsString)
{
    size_t dataSize = JSStringGetMaximumUTF8CStringSize(jsString);
    char* utf8 = (char*)malloc(dataSize);
    JSStringGetUTF8CString(jsString, utf8, dataSize);

    return utf8;
}
// Returns a newly allocated UTF-8 character buffer which must be freed with free()
Returns a newly allocated UTF-8 character buffer which must be freed with free()
Returns a newly allocated UTF - 8 character buffer which must be freed with free ()
char* JSStringCopyUTF8CString(JSStringRef jsString)
{
    size_t dataSize = JSStringGetMaximumUTF8CStringSize(jsString);
    char* utf8 = (char*)malloc(dataSize);
    JSStringGetUTF8CString(jsString, utf8, dataSize);
    return utf8;
}
char * JSStringCopyUTF8CString ( JSStringRef jsString ) { size_t dataSize = JSStringGetMaximumUTF8CStringSize ( jsString ) ; char * utf8 = ( char * ) malloc ( dataSize ) ; JSStringGetUTF8CString ( jsString , utf8 , dataSize ) ; return utf8 ; }
Returns a newly allocated UTF-8 character buffer which must be freed with free()
Returns a newly allocated UTF - 8 character buffer which must be freed with free ()