[Webkit-unassigned] [Bug 7852] New unicode abstraction layer

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Mar 19 06:20:59 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7852





------- Comment #5 from ap at nypop.com  2006-03-19 06:20 PDT -------
I think that a real API for tolower/toupper can only work with complete
strings, not individual characters (there are some evil examples in bug 6310).

Could the following work?

1) KJS::Unicode::isFormatChar() and KJS::Unicode::isSeparatorSpace() take
uint32_t parameters (complete Unicode code point in UTF-32 encoding). This
won't change their existing uses, and will still be easily implementable with
Qt, because format chars and spaces are all in the first Unicode plane AFAIK.
2) KJS::Unicode::toLower() and KJS::Unicode::toUpper work on unsigned short
(UTF-16) buffers, with implementation details hidden behind the API. They
should be able to change the length of the string.
3) UChar::toUpper() and UChar::toLower() are removed altogether (it doesn't
look like they are actually used for anything but strings).

I think that this abstraction may eventially become useful in WebCore, too.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list