[Webkit-unassigned] [Bug 48625] [GTK] Optimize foldCase, toLower and toUpper methods in glib unicode backend
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 11 11:12:27 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=48625
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #72319|review? |review-
Flag| |
--- Comment #3 from Martin Robinson <mrobinson at webkit.org> 2010-11-11 11:12:28 PST ---
(From update of attachment 72319)
View in context: https://bugs.webkit.org/attachment.cgi?id=72319&action=review
Looks good. It just needs a couple small cleanups.
> JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp:58
> + utf16Length += (character >= 0x10000) ? 2 : 1;
There's a macro in TextBreakIterator.h for this.
> JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp:83
> + GOwnPtr<char> utf8Result;
> + utf8Result.set(caseFunction(buffer.data(), buffer.size()));
I think it makes more sense for this to be:
GOwnPtr<char> utf8Result(caseFunction(buffer.data(), buffer.size());
--
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