92 * <code>Replaceable</code> API. 93 * @param offset offset into the contents, from 0 to 94 * <code>length()</code> - 1 95 * @stable ICU 2.0 96 */ 97 public char charAt(int offset) { 98 return buf.charAt(offset); 99 } 100 101 //// for StringPrep 102 /** 103 * Copies characters from this object into the destination 104 * character array. The first character to be copied is at index 105 * <code>srcStart</code>; the last character to be copied is at 106 * index <code>srcLimit-1</code> (thus the total number of 107 * characters to be copied is <code>srcLimit-srcStart</code>). The 108 * characters are copied into the subarray of <code>dst</code> 109 * starting at index <code>dstStart</code> and ending at index 110 * <code>dstStart + (srcLimit-srcStart) - 1</code>. 111 * 112 * @param srcStart the beginning index to copy, inclusive; <code>0 113 * <= start <= limit</code>. 114 * @param srcLimit the ending index to copy, exclusive; 115 * <code>start <= limit <= length()</code>. 116 * @param dst the destination array. 117 * @param dstStart the start offset in the destination array. 118 * @stable ICU 2.0 119 */ 120 public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) { 121 Utility.getChars(buf, srcStart, srcLimit, dst, dstStart); 122 } 123 } | 92 * <code>Replaceable</code> API. 93 * @param offset offset into the contents, from 0 to 94 * <code>length()</code> - 1 95 * @stable ICU 2.0 96 */ 97 public char charAt(int offset) { 98 return buf.charAt(offset); 99 } 100 101 //// for StringPrep 102 /** 103 * Copies characters from this object into the destination 104 * character array. The first character to be copied is at index 105 * <code>srcStart</code>; the last character to be copied is at 106 * index <code>srcLimit-1</code> (thus the total number of 107 * characters to be copied is <code>srcLimit-srcStart</code>). The 108 * characters are copied into the subarray of <code>dst</code> 109 * starting at index <code>dstStart</code> and ending at index 110 * <code>dstStart + (srcLimit-srcStart) - 1</code>. 111 * 112 * @param srcStart the beginning index to copy, inclusive; 113 * {@code 0 <= start <= limit}. 114 * @param srcLimit the ending index to copy, exclusive; 115 * {@code start <= limit <= length()}. 116 * @param dst the destination array. 117 * @param dstStart the start offset in the destination array. 118 * @stable ICU 2.0 119 */ 120 public void getChars(int srcStart, int srcLimit, char dst[], int dstStart) { 121 Utility.getChars(buf, srcStart, srcLimit, dst, dstStart); 122 } 123 } |