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