[webkit-help] How to get a C String from a WebCore::String

Joonghoon Kim lunaris at tmax.co.kr
Sun Aug 9 17:58:03 PDT 2009


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
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
>   



More information about the webkit-help mailing list