<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[50977] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/50977">50977</a></dd>
<dt>Author</dt> <dd>eric@webkit.org</dd>
<dt>Date</dt> <dd>2009-11-13 16:09:41 -0800 (Fri, 13 Nov 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>2009-11-13  Dominik R?\195?\182ttsches  &lt;dominik.roettsches@access-company.com&gt;

        Reviewed by Eric Seidel.

        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
        https://bugs.webkit.org/show_bug.cgi?id=31468

        Adding isAlphanumeric abstraction, required
        by TextBoundaries.cpp.

        * wtf/unicode/glib/UnicodeGLib.h:
        (WTF::Unicode::isAlphanumeric):
        * wtf/unicode/icu/UnicodeIcu.h:
        (WTF::Unicode::isAlphanumeric):
2009-11-13  Dominik R?\195?\182ttsches  &lt;dominik.roettsches@access-company.com&gt;

        Reviewed by Eric Seidel.

        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
        https://bugs.webkit.org/show_bug.cgi?id=31468

        Moving TextBoundariesICU.cpp to TextBoundaries.cpp
        by removing the direct ICU dependency and replacing it
        with WTF functions and WebCore's own TextBreakIterator
        abstractions.

        * GNUmakefile.am:
        * platform/graphics/gtk/SimpleFontDataGtk.cpp:
        * platform/text/TextBoundaries.cpp: Added.
        (WebCore::findNextWordFromIndex):
        (WebCore::findWordBoundary):
        * platform/text/TextBoundariesICU.cpp: Removed.
        * platform/text/TextBreakIterator.h:
        * platform/text/TextBreakIteratorICU.cpp:
        (WebCore::textBreakLast):
        (WebCore::textBreakPrevious):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkJavaScriptCoreChangeLog">trunk/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkJavaScriptCorewtfunicodeglibUnicodeGLibh">trunk/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h</a></li>
<li><a href="#trunkJavaScriptCorewtfunicodeicuUnicodeIcuh">trunk/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h</a></li>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCoreGNUmakefileam">trunk/WebCore/GNUmakefile.am</a></li>
<li><a href="#trunkWebCoreplatformgraphicsgtkSimpleFontDataGtkcpp">trunk/WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp</a></li>
<li><a href="#trunkWebCoreplatformtextTextBreakIteratorh">trunk/WebCore/platform/text/TextBreakIterator.h</a></li>
<li><a href="#trunkWebCoreplatformtextTextBreakIteratorICUcpp">trunk/WebCore/platform/text/TextBreakIteratorICU.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkWebCoreplatformtextTextBoundariescpp">trunk/WebCore/platform/text/TextBoundaries.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkWebCoreplatformtextTextBoundariesICUcpp">trunk/WebCore/platform/text/TextBoundariesICU.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/ChangeLog (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/ChangeLog        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/JavaScriptCore/ChangeLog        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2009-11-13  Dominik Röttsches  &lt;dominik.roettsches@access-company.com&gt;
+
+        Reviewed by Eric Seidel.
+
+        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
+        https://bugs.webkit.org/show_bug.cgi?id=31468
+
+        Adding isAlphanumeric abstraction, required
+        by TextBoundaries.cpp.
+
+        * wtf/unicode/glib/UnicodeGLib.h:
+        (WTF::Unicode::isAlphanumeric):
+        * wtf/unicode/icu/UnicodeIcu.h:
+        (WTF::Unicode::isAlphanumeric):
+
</ins><span class="cx"> 2009-11-13  Norbert Leser  &lt;norbert.leser&amp;nokia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Eric Seidel.
</span></span></pre></div>
<a id="trunkJavaScriptCorewtfunicodeglibUnicodeGLibh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -152,6 +152,11 @@
</span><span class="cx">     return c &gt;= 0x0600 &amp;&amp; c &lt;= 0x06FF;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+inline bool isAlphanumeric(UChar32 c)
+{
+    return g_unichar_isalnum(c);
+}
+
</ins><span class="cx"> inline bool isFormatChar(UChar32 c)
</span><span class="cx"> {
</span><span class="cx">     return g_unichar_type(c) == G_UNICODE_FORMAT;
</span></span></pre></div>
<a id="trunkJavaScriptCorewtfunicodeicuUnicodeIcuh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -164,6 +164,11 @@
</span><span class="cx">       return ublock_getCode(c) == UBLOCK_ARABIC;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+inline bool isAlphanumeric(UChar32 c)
+{
+    return u_isalnum(c);
+}
+
</ins><span class="cx"> inline bool isSeparatorSpace(UChar32 c)
</span><span class="cx"> {
</span><span class="cx">     return u_charType(c) == U_SPACE_SEPARATOR;
</span></span></pre></div>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/ChangeLog        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2009-11-13  Dominik Röttsches  &lt;dominik.roettsches@access-company.com&gt;
+
+        Reviewed by Eric Seidel.
+
+        Unify TextBoundaries implementations by only relying on WTF Unicode abstractions
+        https://bugs.webkit.org/show_bug.cgi?id=31468
+
+        Moving TextBoundariesICU.cpp to TextBoundaries.cpp
+        by removing the direct ICU dependency and replacing it
+        with WTF functions and WebCore's own TextBreakIterator
+        abstractions.
+
+        * GNUmakefile.am:
+        * platform/graphics/gtk/SimpleFontDataGtk.cpp:
+        * platform/text/TextBoundaries.cpp: Added.
+        (WebCore::findNextWordFromIndex):
+        (WebCore::findWordBoundary):
+        * platform/text/TextBoundariesICU.cpp: Removed.
+        * platform/text/TextBreakIterator.h:
+        * platform/text/TextBreakIteratorICU.cpp:
+        (WebCore::textBreakLast):
+        (WebCore::textBreakPrevious):
+
</ins><span class="cx"> 2009-11-13  Shinichiro Hamaji  &lt;hamaji@chromium.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Darin Adler.
</span></span></pre></div>
<a id="trunkWebCoreGNUmakefileam"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/GNUmakefile.am (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/GNUmakefile.am        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/GNUmakefile.am        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -1639,7 +1639,7 @@
</span><span class="cx">         WebCore/platform/text/StringImpl.cpp \
</span><span class="cx">         WebCore/platform/text/StringImpl.h \
</span><span class="cx">         WebCore/platform/text/TextBoundaries.h \
</span><del>-        WebCore/platform/text/TextBoundariesICU.cpp \
</del><ins>+        WebCore/platform/text/TextBoundaries.cpp \
</ins><span class="cx">         WebCore/platform/text/TextBreakIterator.h \
</span><span class="cx">         WebCore/platform/text/TextBreakIteratorICU.cpp \
</span><span class="cx">         WebCore/platform/text/TextBreakIteratorInternalICU.h \
</span><span class="lines">@@ -2031,7 +2031,6 @@
</span><span class="cx"> webcoregtk_sources += \
</span><span class="cx">         WebCore/platform/text/TextCodecICU.cpp \
</span><span class="cx">         WebCore/platform/text/TextCodecICU.h
</span><del>-
</del><span class="cx"> endif
</span><span class="cx"> 
</span><span class="cx"> # ----
</span></span></pre></div>
<a id="trunkWebCoreplatformgraphicsgtkSimpleFontDataGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/platform/graphics/gtk/SimpleFontDataGtk.cpp        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -39,8 +39,6 @@
</span><span class="cx"> #include &quot;FontDescription.h&quot;
</span><span class="cx"> #include &quot;GlyphBuffer.h&quot;
</span><span class="cx"> #include &lt;cairo.h&gt;
</span><del>-#include &lt;unicode/uchar.h&gt;
-#include &lt;unicode/unorm.h&gt;
</del><span class="cx"> #include &lt;wtf/MathExtras.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span></span></pre></div>
<a id="trunkWebCoreplatformtextTextBoundariescppfromrev50976trunkWebCoreplatformtextTextBoundariesICUcpp"></a>
<div class="copfile"><h4>Copied: trunk/WebCore/platform/text/TextBoundaries.cpp (from rev 50976, trunk/WebCore/platform/text/TextBoundariesICU.cpp) (0 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/text/TextBoundaries.cpp                                (rev 0)
+++ trunk/WebCore/platform/text/TextBoundaries.cpp        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -0,0 +1,79 @@
</span><ins>+/*
+ * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2009 Dominik Röttsches &lt;dominik.roettsches@access-company.com&gt;
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+
+#include &quot;config.h&quot;
+#include &quot;TextBoundaries.h&quot;
+
+#include &quot;StringImpl.h&quot;
+#include &quot;TextBreakIterator.h&quot;
+#include &lt;Unicode.h&gt;
+
+using namespace WTF;
+using namespace Unicode;
+
+namespace WebCore {
+
+int findNextWordFromIndex(const UChar* chars, int len, int position, bool forward)
+{
+    TextBreakIterator* it = wordBreakIterator(chars, len);
+
+    if (forward) {
+        position = textBreakFollowing(it, position);
+        while (position != TextBreakDone) {
+            // We stop searching when the character preceeding the break
+            // is alphanumeric.
+            if (position &lt; len &amp;&amp; isAlphanumeric(chars[position - 1]))
+                return position;
+
+            position = textBreakFollowing(it, position);
+        }
+
+        return len;
+    } else {
+        position = textBreakPreceding(it, position);
+        while (position != TextBreakDone) {
+            // We stop searching when the character following the break
+            // is alphanumeric.
+            if (position &gt; 0 &amp;&amp; isAlphanumeric(chars[position]))
+                return position;
+
+            position = textBreakPreceding(it, position);
+        }
+
+        return 0;
+    }
+}
+
+void findWordBoundary(const UChar* chars, int len, int position, int* start, int* end)
+{
+    TextBreakIterator* it = wordBreakIterator(chars, len);
+    *end = textBreakFollowing(it, position);
+    if (*end &lt; 0)
+        *end = textBreakLast(it);
+    *start = textBreakPrevious(it);
+}
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkWebCoreplatformtextTextBoundariesICUcpp"></a>
<div class="delfile"><h4>Deleted: trunk/WebCore/platform/text/TextBoundariesICU.cpp (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/text/TextBoundariesICU.cpp        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/platform/text/TextBoundariesICU.cpp        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -1,77 +0,0 @@
</span><del>-/*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
- */
-
-#include &quot;config.h&quot;
-#include &quot;TextBoundaries.h&quot;
-
-#include &lt;unicode/ubrk.h&gt;
-#include &lt;unicode/uchar.h&gt;
-
-#include &quot;StringImpl.h&quot;
-#include &quot;TextBreakIterator.h&quot;
-
-namespace WebCore {
-
-int findNextWordFromIndex(const UChar* chars, int len, int position, bool forward)
-{
-    UBreakIterator* it = wordBreakIterator(chars, len);
-
-    if (forward) {
-        position = ubrk_following(it, position);
-        while (position != UBRK_DONE) {
-            // We stop searching when the character preceeding the break
-            // is alphanumeric.
-            if (position &lt; len &amp;&amp; u_isalnum(chars[position - 1]))
-                return position;
-
-            position = ubrk_following(it, position);
-        }
-
-        return len;
-    } else {
-        position = ubrk_preceding(it, position);
-        while (position != UBRK_DONE) {
-            // We stop searching when the character following the break
-            // is alphanumeric.
-            if (position &gt; 0 &amp;&amp; u_isalnum(chars[position]))
-                return position;
-
-            position = ubrk_preceding(it, position);
-        }
-
-        return 0;
-    }
-}
-
-void findWordBoundary(const UChar* chars, int len, int position, int* start, int* end)
-{
-    UBreakIterator* it = wordBreakIterator(chars, len);
-    *end = ubrk_following(it, position);
-    if (*end &lt; 0)
-        *end = ubrk_last(it);
-    *start = ubrk_previous(it);
-}
-
-} // namespace WebCore
</del></span></pre></div>
<a id="trunkWebCoreplatformtextTextBreakIteratorh"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/text/TextBreakIterator.h (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/text/TextBreakIterator.h        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/platform/text/TextBreakIterator.h        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -47,7 +47,9 @@
</span><span class="cx">     TextBreakIterator* sentenceBreakIterator(const UChar*, int length);
</span><span class="cx"> 
</span><span class="cx">     int textBreakFirst(TextBreakIterator*);
</span><ins>+    int textBreakLast(TextBreakIterator*);
</ins><span class="cx">     int textBreakNext(TextBreakIterator*);
</span><ins>+    int textBreakPrevious(TextBreakIterator*);
</ins><span class="cx">     int textBreakCurrent(TextBreakIterator*);
</span><span class="cx">     int textBreakPreceding(TextBreakIterator*, int);
</span><span class="cx">     int textBreakFollowing(TextBreakIterator*, int);
</span></span></pre></div>
<a id="trunkWebCoreplatformtextTextBreakIteratorICUcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/platform/text/TextBreakIteratorICU.cpp (50976 => 50977)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/platform/text/TextBreakIteratorICU.cpp        2009-11-14 00:07:03 UTC (rev 50976)
+++ trunk/WebCore/platform/text/TextBreakIteratorICU.cpp        2009-11-14 00:09:41 UTC (rev 50977)
</span><span class="lines">@@ -90,11 +90,21 @@
</span><span class="cx">     return ubrk_first(bi);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+int textBreakLast(TextBreakIterator* bi)
+{
+    return ubrk_last(bi);
+}
+
</ins><span class="cx"> int textBreakNext(TextBreakIterator* bi)
</span><span class="cx"> {
</span><span class="cx">     return ubrk_next(bi);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+int textBreakPrevious(TextBreakIterator* bi)
+{
+    return ubrk_previous(bi);
+}
+
</ins><span class="cx"> int textBreakPreceding(TextBreakIterator* bi, int pos)
</span><span class="cx"> {
</span><span class="cx">     return ubrk_preceding(bi, pos);
</span></span></pre>
</div>
</div>

</body>
</html>