ICU-156 add new BI::setText(US &)
X-SVN-Rev: 1710
This commit is contained in:
parent
cc42314029
commit
1f32d4dd9f
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user