From 1f32d4dd9fecb3fd9a828333a4e10ce21a1c7dcd Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 29 Jun 2000 20:21:45 +0000 Subject: [PATCH] ICU-156 add new BI::setText(US &) X-SVN-Rev: 1710 --- icu4c/source/i18n/unicode/brkiter.h | 13 ++++++++++--- icu4c/source/i18n/unicode/rbbi.h | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/icu4c/source/i18n/unicode/brkiter.h b/icu4c/source/i18n/unicode/brkiter.h index 94ca12617c..968b89d03e 100644 --- a/icu4c/source/i18n/unicode/brkiter.h +++ b/icu4c/source/i18n/unicode/brkiter.h @@ -137,7 +137,7 @@ * . * . //print each sentence in forward and reverse order * . boundary = BreakIterator::createSentenceInstance( Locale::US ); - * . boundary->setText(&stringToExamine); + * . boundary->setText(stringToExamine); * . cout << "----- forward: -----------" << endl; * . printEachForward(*boundary); * . cout << "----- backward: ----------" << endl; @@ -146,7 +146,7 @@ * . * . //print each word in order * . boundary = BreakIterator::createWordInstance(); - * . boundary->setText(&stringToExamine); + * . boundary->setText(stringToExamine); * . cout << "----- forward: -----------" << endl; * . printEachForward(*boundary); * . //print first element @@ -217,10 +217,17 @@ public: /** * Change the text over which this operates. The text boundary is * reset to the start. - * @deprecated This function should be modified to take a const UnicodeString& agrument. + * @deprecated This function should be modified to take a const UnicodeString& argument. */ virtual void setText(const UnicodeString* it) = 0; + /** + * Change the text over which this operates. The text boundary is + * reset to the start. + * @draft + */ + virtual void setText(const UnicodeString &text) = 0; + /** * Change the text over which this operates. The text boundary is * reset to the start. diff --git a/icu4c/source/i18n/unicode/rbbi.h b/icu4c/source/i18n/unicode/rbbi.h index 2661ec979b..be70640a97 100644 --- a/icu4c/source/i18n/unicode/rbbi.h +++ b/icu4c/source/i18n/unicode/rbbi.h @@ -320,6 +320,7 @@ RuleBasedBreakIterator(const void* image); * Set the iterator to analyze a new piece of text. This function resets * the current iteration position to the beginning of the text. * @param newText The text to analyze. + * @deprecated * THIS FUNCTION SHOULD NOT BE HERE. IT'S HERE BECAUSE BreakIterator DEFINES * IT AS PURE VIRTUAL, FORCING RBBI TO IMPLEMENT IT. IT SHOULD BE REMOVED * FROM *BOTH* CLASSES.