[Webkit-unassigned] [Bug 92872] A smart util class that grabs latin1 string from a WTF::String

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 1 12:00:58 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92872





--- Comment #4 from Yong Li <yoli at rim.com>  2012-08-01 12:00:59 PST ---
> 
> Another idea: Add a non-const method ensure8Bit() to String, so developer can get a copy of the string, call this method, and then directly use characters8() without worrying about crashes.

Actually it can be just one call: characters8MustBeThere(). the same way as we use String::charactersWithNullTermination().

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list