Index: Source/core/platform/text/TextBoundaries.cpp |
diff --git a/Source/core/platform/text/TextBoundaries.cpp b/Source/core/platform/text/TextBoundaries.cpp |
index df638b6f6a73c745bc7e9643364b9cfb4c3a63fa..7a77001792b8fd5600314bf75a6fe1b11e4da7c9 100644 |
--- a/Source/core/platform/text/TextBoundaries.cpp |
+++ b/Source/core/platform/text/TextBoundaries.cpp |
@@ -65,26 +65,26 @@ int findNextWordFromIndex(const UChar* chars, int len, int position, bool forwar |
TextBreakIterator* it = wordBreakIterator(chars, len); |
if (forward) { |
- position = textBreakFollowing(it, position); |
+ position = it->following(position); |
while (position != TextBreakDone) { |
// We stop searching when the character preceeding the break |
// is alphanumeric. |
if (position < len && isAlphanumeric(chars[position - 1])) |
return position; |
- position = textBreakFollowing(it, position); |
+ position = it->following(position); |
} |
return len; |
} else { |
- position = textBreakPreceding(it, position); |
+ position = it->preceding(position); |
while (position != TextBreakDone) { |
// We stop searching when the character following the break |
// is alphanumeric. |
if (position > 0 && isAlphanumeric(chars[position])) |
return position; |
- position = textBreakPreceding(it, position); |
+ position = it->preceding(position); |
} |
return 0; |
@@ -94,10 +94,10 @@ int findNextWordFromIndex(const UChar* chars, int len, int position, bool forwar |
void findWordBoundary(const UChar* chars, int len, int position, int* start, int* end) |
{ |
TextBreakIterator* it = wordBreakIterator(chars, len); |
- *end = textBreakFollowing(it, position); |
+ *end = it->following(position); |
if (*end < 0) |
- *end = textBreakLast(it); |
- *start = textBreakPrevious(it); |
+ *end = it->last(); |
+ *start = it->previous(); |
} |