]> granicus.if.org Git - icu/commitdiff
ICU-12515 first() should just call delegate
authorSteven R. Loomis <srl@icu-project.org>
Thu, 15 Sep 2016 04:21:26 +0000 (04:21 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Thu, 15 Sep 2016 04:21:26 +0000 (04:21 +0000)
there won't be a suppressed break at position 0. first() should just call
into the delegate.

X-SVN-Rev: 39237

icu4c/source/common/filteredbrk.cpp

index f82810d3eca50c685156851569ede321d4a03b6e..acba9592f0d239ddd8918c402b86d264ba8b30ad 100644 (file)
@@ -403,7 +403,8 @@ SimpleFilteredSentenceBreakIterator::next() {
 
 int32_t
 SimpleFilteredSentenceBreakIterator::first(void) {
-  return internalNext(fDelegate->first());
+  // Don't suppress a break opportunity at the beginning of text.
+  return fDelegate->first();
 }
 
 int32_t