From: Yoshito Umaoka Date: Tue, 9 Sep 2014 21:39:33 +0000 (+0000) Subject: ICU-11029 Added some note about methods not yet implemented. Also updated these metho... X-Git-Tag: milestone-59-0-1~1579 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b334674c94b3a1186dafce22e6d93725e020ea4;p=icu ICU-11029 Added some note about methods not yet implemented. Also updated these method to do nothing but returns DONE. X-SVN-Rev: 36410 --- diff --git a/icu4c/source/i18n/filteredbrk.cpp b/icu4c/source/i18n/filteredbrk.cpp index 5270cb2a91a..4f2c47b6d7b 100644 --- a/icu4c/source/i18n/filteredbrk.cpp +++ b/icu4c/source/i18n/filteredbrk.cpp @@ -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(); } }; diff --git a/icu4c/source/i18n/unicode/filteredbrk.h b/icu4c/source/i18n/unicode/filteredbrk.h index 11ba4f6a228..486c3fa4349 100644 --- a/icu4c/source/i18n/unicode/filteredbrk.h +++ b/icu4c/source/i18n/unicode/filteredbrk.h @@ -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. * + *

Note: An instance of {@link BreakIterator} returned by this builder + * class currently does not support following operations in this technology preview + * version: + *

+ * 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 {