Eliminate ReplaceableString.getBuffer

X-SVN-Rev: 1246
This commit is contained in:
Alan Liu 2000-04-25 17:19:34 +00:00
parent 004aad2638
commit 7e1ccff554
3 changed files with 11 additions and 11 deletions

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/translit/TransliteratorTest.java,v $
* $Date: 2000/04/25 01:43:23 $
* $Revision: 1.18 $
* $Date: 2000/04/25 17:19:34 $
* $Revision: 1.19 $
*
*****************************************************************************************
*/
@ -514,7 +514,7 @@ public class TransliteratorTest extends TestFmwk {
// Test keyboard (incremental) transliteration -- this result
// must be the same after we finalize (see below).
rsource.getStringBuffer().setLength(0);
rsource.replace(0, rsource.length(), "");
Transliterator.Position index = new Transliterator.Position();
StringBuffer log = new StringBuffer();

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/translit/Attic/TransliteratorTest.java,v $
* $Date: 2000/04/25 01:43:23 $
* $Revision: 1.18 $
* $Date: 2000/04/25 17:19:34 $
* $Revision: 1.19 $
*
*****************************************************************************************
*/
@ -514,7 +514,7 @@ public class TransliteratorTest extends TestFmwk {
// Test keyboard (incremental) transliteration -- this result
// must be the same after we finalize (see below).
rsource.getStringBuffer().setLength(0);
rsource.replace(0, rsource.length(), "");
Transliterator.Position index = new Transliterator.Position();
StringBuffer log = new StringBuffer();

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/components/Attic/TransliteratingTextComponent.java,v $
* $Date: 2000/03/10 04:07:26 $
* $Revision: 1.3 $
* $Date: 2000/04/25 17:18:54 $
* $Revision: 1.4 $
*
*****************************************************************************************
*/
@ -25,7 +25,7 @@ import com.ibm.text.*;
* <p>Copyright &copy; IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
* @version $RCSfile: TransliteratingTextComponent.java,v $ $Revision: 1.3 $ $Date: 2000/03/10 04:07:26 $
* @version $RCSfile: TransliteratingTextComponent.java,v $ $Revision: 1.4 $ $Date: 2000/04/25 17:18:54 $
*/
public class TransliteratingTextComponent extends DumbTextComponent {
@ -101,8 +101,8 @@ public class TransliteratingTextComponent extends DumbTextComponent {
int saveStart = start;
ReplaceableString buf = new ReplaceableString();
buf.getStringBuffer().append(getText().substring(start,
getSelectionStart()));
buf.replace(0, 1, getText().substring(start,
getSelectionStart()));
Transliterator.Position index =
new Transliterator.Position(0, getSelectionStart() - start,