2011-04-07 Jeff Miller <jeffm@apple.com>
Reviewed by Adam Roben. Replace WKStringGetCharactersPtr() with WKStringGetCharacters() https://bugs.webkit.org/show_bug.cgi?id=58058 * TestWebKitAPI/Tests/WebKit2/WKString.cpp: (TestWebKitAPI::TEST): Add tests for WKStringGetLength() and WKStringGetCharactersPtr(). 2011-04-07 Jeff Miller <jeffm@apple.com> Reviewed by Adam Roben. Replace WKStringGetCharactersPtr() with WKStringGetCharacters() https://bugs.webkit.org/show_bug.cgi?id=58058 WKStringGetCharactersPtr() exposes the internal implementation of WKString, so change this to WKStringGetCharacters(), which makes a UTF-16 copy. * Shared/API/c/WKString.cpp: (WKStringGetCharacters): Added, replaces WKStringGetCharactersPtr(). * Shared/API/c/WKString.h: Replaced WKStringGetCharactersPtr() with WKStringGetCharacters(). * Shared/WebString.h: (WebKit::WebString::getCharacters): Added. git-svn-id: svn://svn.chromium.org/blink/trunk@83198 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment