Hi,

See WebCore/platform/text/PlatformString.h

You can get CString object by String::latn1() or String::utf8(), and you can get
char* with CString::data.
If you want some other encoding, you may have to create your own text codec.
(see TextCodec* in same directory)

Joonghoon

n179911 쓴 글:
Hi,

Can you please tell me how can I get a C String from a WebCore::String?
I tried "c_str" method, but It said
error: 'class WebCore::String' has no member named 'c_str'

And I tried looking for WebCore::String .h file? The closest I can
find is webkit/api/public/WebString.h? Can you please tell me how can
i find all the public methods of WebCore::String?

Thank you.
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help


_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to