equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
80 * <p>Copyright © IBM Corporation 1999. All rights reserved. |
80 * <p>Copyright © IBM Corporation 1999. All rights reserved. |
81 * |
81 * |
82 * @author Alan Liu |
82 * @author Alan Liu |
83 * @stable ICU 2.0 |
83 * @stable ICU 2.0 |
84 */ |
84 */ |
85 public interface Replaceable { |
85 interface Replaceable { |
86 /** |
86 /** |
87 * Returns the number of 16-bit code units in the text. |
87 * Returns the number of 16-bit code units in the text. |
88 * @return number of 16-bit code units in text |
88 * @return number of 16-bit code units in text |
89 * @stable ICU 2.0 |
89 * @stable ICU 2.0 |
90 */ |
90 */ |
97 * @return 16-bit code unit of text at given offset |
97 * @return 16-bit code unit of text at given offset |
98 * @stable ICU 2.0 |
98 * @stable ICU 2.0 |
99 */ |
99 */ |
100 char charAt(int offset); |
100 char charAt(int offset); |
101 |
101 |
102 //// for StringPrep |
|
103 /** |
102 /** |
104 * Copies characters from this object into the destination |
103 * Copies characters from this object into the destination |
105 * character array. The first character to be copied is at index |
104 * character array. The first character to be copied is at index |
106 * <code>srcStart</code>; the last character to be copied is at |
105 * <code>srcStart</code>; the last character to be copied is at |
107 * index <code>srcLimit-1</code> (thus the total number of |
106 * index <code>srcLimit-1</code> (thus the total number of |