2 * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
\r
4 * The program is provided "as is" without any warranty express or
\r
5 * implied, including the warranty of non-infringement and the implied
\r
6 * warranties of merchantibility and fitness for a particular purpose.
\r
7 * IBM will not be liable for any damages suffered by you as a result
\r
8 * of using the Program. In no event will IBM be liable for any
\r
9 * special, indirect or consequential damages or lost profits even if
\r
10 * IBM has been advised of the possibility of their occurrence. IBM
\r
11 * will not be liable for any third party claims against you.
\r
13 package com.ibm.richtext.styledtext;
\r
14 import java.text.CharacterIterator;
\r
16 /** A dynamic character array optimized for sequences of insert
\r
17 or delete operations in a local region. */
\r
19 abstract class MCharBuffer
\r
21 static final String COPYRIGHT =
\r
22 "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";
\r
23 abstract void replace(int start, int limit, MConstText text, int srcStart, int srcLimit);
\r
24 abstract void replace(int start, int limit, char[] srcChars, int srcStart, int srcLimit);
\r
25 abstract void replace(int start, int limit, String srcString, int srcStart, int srcLimit);
\r
26 abstract void replace(int start, int limit, char srcChar);
\r
27 abstract CharacterIterator createCharacterIterator(int start, int limit);
\r
28 abstract char at(int pos);
\r
29 abstract void at(int start, int limit, char[] dst, int dstStart);
\r
31 abstract int length();
\r
33 abstract int capacity();
\r
34 abstract void reserveCapacity(int pos, int length);
\r
35 abstract void compress();
\r