[Webkit-unassigned] [Bug 81136] Need implement isWordTextBreak for GTK, QT, and WinCE for visual word movement functionality

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 26 12:56:19 PDT 2012


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





--- Comment #2 from Xiaomei Ji <xji at chromium.org>  2012-03-26 12:56:20 PST ---
(In reply to comment #1)
> I cannot find isWordTextBreak anywhere in the WebKit source code. Is this something you're working on now? For the record GTK+ uses ICU by default, so there shouldn't be much in the way of implementation.

It is added in r110965
under Source/WebCore/platform/text/TextBreakIterator.h.

If you look at its implementation under TextBreakIteratorICU.cpp,
basically, it is checking the current word break iterator just pass over a word.
For example, "abc def", both positions "abc| |def" are word break positions,
but isWordTextBreak returns true for "abc| def" since the break iterator just pass over "abc". And it returns false for "abc |def" since the break iterator just pass over a space.

If GTK+ uses ICU, that should be easy to implemented.

-- 
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