]> granicus.if.org Git - icu/commitdiff
ICU-11029 Added some note about methods not yet implemented. Also updated these metho...
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 9 Sep 2014 21:39:33 +0000 (21:39 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 9 Sep 2014 21:39:33 +0000 (21:39 +0000)
X-SVN-Rev: 36410

icu4c/source/i18n/filteredbrk.cpp
icu4c/source/i18n/unicode/filteredbrk.h

index 5270cb2a91a8e225db28f3931146db65e7daab06..4f2c47b6d7bfedc19efe4c721c2b4534ca72f76e 100644 (file)
@@ -161,15 +161,15 @@ public:
 
   /* -- ITERATION -- */
   virtual int32_t first(void) { return fDelegate->first(); }
-  virtual int32_t preceding(int32_t offset) { return fDelegate->preceding(offset); }
-  virtual int32_t previous(void) { return fDelegate->previous(); }
+  virtual int32_t preceding(int32_t offset) { /* TODO: not implemented */ return UBRK_DONE; }
+  virtual int32_t previous(void) { /* TODO: not implemented */ return UBRK_DONE; }
   virtual UBool isBoundary(int32_t offset) { return fDelegate->isBoundary(offset); }
   virtual int32_t current(void) const { return fDelegate->current(); }
 
   virtual int32_t next(void);
 
-  virtual int32_t next(int32_t n) { return fDelegate->next(n); }
-  virtual int32_t following(int32_t offset) { return fDelegate->following(offset); }
+  virtual int32_t next(int32_t n) { /* TODO: not implemented */ return UBRK_DONE; }
+  virtual int32_t following(int32_t offset) { /* TODO: not implemented */ return UBRK_DONE; }
   virtual int32_t last(void) { return fDelegate->last(); }
 
 };
index 11ba4f6a228e0465537e78d976d564ea9fa30244..486c3fa4349cc8a1eadd5de4703bce93118f079f 100644 (file)
@@ -29,6 +29,18 @@ U_NAMESPACE_BEGIN
  *  but with "Mr." as an exception, a filtered break iterator
  *  would consider the string "Mr. Smith" to be a single segment.
  *
+ * <p><b>Note:</b> An instance of {@link BreakIterator} returned by this builder
+ * class currently does not support following operations in this technology preview
+ * version:
+ * <ul>
+ *   <li>{@link BreakIterator#next(int32_t) next(int32_t n)}</li>
+ *   <li>{@link BreakIterator#previous(void) previous(void)}</li>
+ *   <li>{@link BreakIterator#following(int32_t) following(int32_t offset)}</li>
+ *   <li>{@link BreakIterator#preceding(int32_t) preceding(int32_t offset)}</li>
+ * </ul>
+ * When one of above methods is called, BreakIterator.DONE will be returned immediately
+ * without updating the internal state.
+ *
  * @internal technology preview
  */
 class U_I18N_API FilteredBreakIteratorBuilder : public UObject {