<property name="icu4j.api.doc.window.title" value="ICU4J ${api.doc.version}"/>
<property name="icu4j.api.doc.header" value="ICU4J ${api.doc.version}"/>
<property name="icu4j.api.doc.jdk.link" value="http://docs.oracle.com/javase/8/docs/api/"/>
+ <property name="icu4j.api.doc.copyright.footer" value="<font size=-1>Copyright © ${current.year} Unicode, Inc. and others.</font>"/>
<!-- directories -->
<property name="release.dir" value="release"/>
encoding="${java.src.encoding}"
docencoding="UTF-8"
charset="UTF-8"
- bottom="<font size=-1>Copyright (c) ${current.year} IBM Corporation and others.</font>"
+ bottom="${icu4j.api.doc.copyright.footer}"
additionalparam="${doclint.option} -breakiterator -use -tagletpath ${icu4j.build-tools.jar}${path.separator}${jcite.libs} -taglet com.ibm.icu.dev.tool.docs.ICUTaglet -taglet ch.arrenbrecht.jcite.JCiteTaglet -J-Djcitesourcepath=${jcite.addl.src} -J-Dfile.encoding=UTF-8"
link="${icu4j.api.doc.jdk.link}"
source="1.5"
encoding="${java.src.encoding}"
docencoding="UTF-8"
charset="UTF-8"
- bottom="<font size=-1>Copyright (c) ${current.year} IBM Corporation and others.</font>"
+ bottom="${icu4j.api.doc.copyright.footer}"
additionalparam="${doclint.option} -breakiterator -use -tagletpath ${icu4j.build-tools.jar} -taglet com.ibm.icu.dev.tool.docs.ICUTaglet"
link="${icu4j.api.doc.jdk.link}"
source="1.5"
* </li>
* </ul>
* If this is not the behavior, the subclass should document any differences.
- *
- * <p>Copyright © IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
* @stable ICU 2.0
* Returns the number of 16-bit code units in the text.
* @return number of 16-bit code units in text
* @stable ICU 2.0
- */
+ */
int length();
/**
* <pre> char[] text = new char[limit - start];
* getChars(start, limit, text, 0);
* replace(dest, dest, text, 0, limit - start);</pre>
- *
+ *
* @param start the beginning index, inclusive; <code>0 <= start <=
* limit</code>.
* @param limit the ending index, exclusive; <code>start <= limit <=
* @stable ICU 2.0
*/
void copy(int start, int limit, int dest);
-
+
/**R
* Returns true if this object contains metadata. If a
* Replaceable object has metadata, calls to the Replaceable API
* intended for general use. Most clients will need to implement
* {@link Replaceable} in their text representation class.
*
- * <p>Copyright © IBM Corporation 1999. All rights reserved.
- *
* @see Replaceable
* @author Alan Liu
* @stable ICU 2.0
* @return string contents of this object
* @stable ICU 2.0
*/
+ @Override
public String toString() {
return buf.toString();
}
* Return the number of characters contained in this object.
* <code>Replaceable</code> API.
* @stable ICU 2.0
- */
+ */
+ @Override
public int length() {
return buf.length();
}
* <code>length()</code> - 1
* @stable ICU 2.0
*/
+ @Override
public char charAt(int offset) {
return buf.charAt(offset);
}
* @return 32-bit code point of text at given offset
* @stable ICU 2.0
*/
+ @Override
public int char32At(int offset) {
return UTF16.charAt(buf, offset);
}
* @param dstStart the start offset in the destination array.
* @stable ICU 2.0
*/
+ @Override
public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) {
if (srcStart != srcLimit) {
buf.getChars(srcStart, srcLimit, dst, dstStart);
* <code>limit - 1</code>
* @stable ICU 2.0
*/
+ @Override
public void replace(int start, int limit, String text) {
buf.replace(start, limit, text);
}
* @param charsLen the number of characters of <code>chars</code>.
* @stable ICU 2.0
*/
+ @Override
public void replace(int start, int limit, char[] chars,
int charsStart, int charsLen) {
buf.delete(start, limit);
* Copy a substring of this object, retaining attribute (out-of-band)
* information. This method is used to duplicate or reorder substrings.
* The destination index must not overlap the source range.
- *
+ *
* @param start the beginning index, inclusive; <code>0 <= start <=
* limit</code>.
* @param limit the ending index, exclusive; <code>start <= limit <=
* dest >= limit</code>.
* @stable ICU 2.0
*/
+ @Override
public void copy(int start, int limit, int dest) {
if (start == limit && start >= 0 && start <= buf.length()) {
return;
getChars(start, limit, text, 0);
replace(dest, dest, text, 0, limit - start);
}
-
+
/**
* Implements Replaceable
* @stable ICU 2.0
*/
+ @Override
public boolean hasMetaData() {
return false;
}