Add support for convenient conversion from JSStringRef to QString
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Mar 2013 10:14:50 +0000 (10:14 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Mar 2013 10:14:50 +0000 (10:14 +0000)
commit9a81f5b57f43b26012cc76bfe6f8d737b8d01d5e
treed6a38cf8dfdf57d22fb02ae6d3f77ff7f032d7c2
parent0987d389a7fb33b34540ceffb3b5f043c6ba413a
Add support for convenient conversion from JSStringRef to QString
https://bugs.webkit.org/show_bug.cgi?id=109694

Reviewed by Allan Sandfeld Jensen.

Add JSStringCopyQString helper function that allows for the convenient
extraction of a QString out of a JSStringRef.

* API/JSStringRefQt.cpp: Added.
(JSStringCopyQString):
* API/JSStringRefQt.h: Added.
* API/OpaqueJSString.h:
(OpaqueJSString):
(OpaqueJSString::qString):
(OpaqueJSString::OpaqueJSString):
* Target.pri:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/API/JSStringRefQt.cpp [new file with mode: 0644]
Source/JavaScriptCore/API/JSStringRefQt.h [new file with mode: 0644]
Source/JavaScriptCore/API/OpaqueJSString.h
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/Target.pri