ICU-156 add new BI::setText(US &)

X-SVN-Rev: 1710
This commit is contained in:
Markus Scherer 2000-06-29 20:21:45 +00:00
parent cc42314029
commit 1f32d4dd9f
2 changed files with 11 additions and 3 deletions

View File

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

View File

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