Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1666)

Unified Diff: Source/platform/text/TextBreakIterator.h

Issue 23618052: TextBreakIterator should use the C++ icu API instead of the C one (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Downcast to icu::RuleBasedBreakIterator Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/text/TextBoundaries.cpp ('k') | Source/platform/text/TextBreakIteratorICU.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/TextBreakIterator.h
diff --git a/Source/platform/text/TextBreakIterator.h b/Source/platform/text/TextBreakIterator.h
index f0c952840a9a64520bcfcc5bc20ff6d71652fffa..b8144c4e215d8d676da033683d83a68ac6215567 100644
--- a/Source/platform/text/TextBreakIterator.h
+++ b/Source/platform/text/TextBreakIterator.h
@@ -28,7 +28,7 @@
namespace WebCore {
-class TextBreakIterator;
+typedef icu::BreakIterator TextBreakIterator;
// Note: The returned iterator is good only until you get another iterator, with the exception of acquireLineBreakIterator.
@@ -45,14 +45,6 @@ PLATFORM_EXPORT TextBreakIterator* acquireLineBreakIterator(const UChar*, int le
PLATFORM_EXPORT void releaseLineBreakIterator(TextBreakIterator*);
PLATFORM_EXPORT TextBreakIterator* sentenceBreakIterator(const UChar*, int length);
-PLATFORM_EXPORT int textBreakFirst(TextBreakIterator*);
-PLATFORM_EXPORT int textBreakLast(TextBreakIterator*);
-PLATFORM_EXPORT int textBreakNext(TextBreakIterator*);
-PLATFORM_EXPORT int textBreakPrevious(TextBreakIterator*);
-PLATFORM_EXPORT int textBreakCurrent(TextBreakIterator*);
-PLATFORM_EXPORT int textBreakPreceding(TextBreakIterator*, int);
-PLATFORM_EXPORT int textBreakFollowing(TextBreakIterator*, int);
-PLATFORM_EXPORT bool isTextBreak(TextBreakIterator*, int);
PLATFORM_EXPORT bool isWordTextBreak(TextBreakIterator*);
const int TextBreakDone = -1;
« no previous file with comments | « Source/platform/text/TextBoundaries.cpp ('k') | Source/platform/text/TextBreakIteratorICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698