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

Unified Diff: base/i18n/break_iterator.h

Issue 7458014: Implement Uniscribe RenderText for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 9 years, 4 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 | « no previous file | base/i18n/break_iterator.cc » ('j') | base/i18n/break_iterator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/break_iterator.h
diff --git a/base/i18n/break_iterator.h b/base/i18n/break_iterator.h
index e49b46e68b523386644f113c4f0ef7d3537269c5..0c75a52df9b84c91732e94cf3db8f17a7adaf0ae 100644
--- a/base/i18n/break_iterator.h
+++ b/base/i18n/break_iterator.h
@@ -87,6 +87,11 @@ class BreakIterator {
// this distinction doesn't apply and it always retuns false.
bool IsWord() const;
+ // Returns true if |position| is a valid word break.
+ // Loosely follow common Windows behavior; break at word logical beginnings.
+ // TODO(msw): Consider "better" word break algorithms and other platforms.
+ bool IsWordBreakAt(size_t position);
+
// Returns the string between prev() and pos().
// Advance() must have been called successfully at least once for pos() to
// have advanced to somewhere useful.
« no previous file with comments | « no previous file | base/i18n/break_iterator.cc » ('j') | base/i18n/break_iterator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698