Lines Matching refs:offset

173      * of the character array argument. The {@code offset} argument is the
182 * @param offset
183 * The initial offset
189 * If the {@code offset} and {@code count} arguments index
192 public String(char value[], int offset, int count) {
193 if (offset < 0) {
194 throw new StringIndexOutOfBoundsException(offset);
199 // Note: offset or count might be near -1>>>1.
200 if (offset > value.length - count) {
201 throw new StringIndexOutOfBoundsException(offset + count);
203 this.value = Arrays.copyOfRange(value, offset, offset+count);
209 * argument. The {@code offset} argument is the index of the first code
218 * @param offset
219 * The initial offset
229 * If the {@code offset} and {@code count} arguments index
234 public String(int[] codePoints, int offset, int count) {
235 if (offset < 0) {
236 throw new StringIndexOutOfBoundsException(offset);
241 // Note: offset or count might be near -1>>>1.
242 if (offset > codePoints.length - count) {
243 throw new StringIndexOutOfBoundsException(offset + count);
246 final int end = offset + count;
250 for (int i = offset; i < end; i++) {
262 for (int i = offset, j = 0; i < end; i++, j++) {
277 * <p> The {@code offset} argument is the index of the first byte of the
296 * @param offset
297 * The initial offset
302 * If the {@code offset} or {@code count} argument is invalid
313 public String(byte ascii[], int hibyte, int offset, int count) {
314 checkBounds(ascii, offset, count);
319 value[i] = (char)(ascii[i + offset] & 0xff);
324 value[i] = (char)(hibyte | (ascii[i + offset] & 0xff));
366 * and requested offset & length values used by the String(byte[],..)
369 private static void checkBounds(byte[] bytes, int offset, int length) {
372 if (offset < 0)
373 throw new StringIndexOutOfBoundsException(offset);
374 if (offset > bytes.length - length)
375 throw new StringIndexOutOfBoundsException(offset + length);
392 * @param offset
406 * If the {@code offset} and {@code length} arguments index
411 public String(byte bytes[], int offset, int length, String charsetName)
415 checkBounds(bytes, offset, length);
416 this.value = StringCoding.decode(charsetName, bytes, offset, length);
433 * @param offset
444 * If the {@code offset} and {@code length} arguments index
449 public String(byte bytes[], int offset, int length, Charset charset) {
452 checkBounds(bytes, offset, length);
453 this.value = StringCoding.decode(charset, bytes, offset, length);
522 * @param offset
529 * If the {@code offset} and the {@code length} arguments index
534 public String(byte bytes[], int offset, int length) {
535 checkBounds(bytes, offset, length);
536 this.value = StringCoding.decode(bytes, offset, length);
610 String(int offset, int count, char[] value) {
611 this(value, offset, count);
752 * offset from the given <code>index</code> by
757 * @param index the index to be offset
758 * @param codePointOffset the offset in code points
805 * @param dstBegin the start offset in the destination array.
859 * The start offset in the destination array
1245 * @param toffset the starting offset of the subregion in this string.
1247 * @param ooffset the starting offset of the subregion in the string
1312 * @param toffset the starting offset of the subregion in this
1315 * @param ooffset the starting offset of the subregion in the string
1708 * @param sourceOffset offset of the source string.
1711 * @param targetOffset offset of the target string.
1799 * @param sourceOffset offset of the source string.
1802 * @param targetOffset offset of the target string.
2875 * The <code>offset</code> argument is the index of the first
2882 * @param offset the initial offset into the value of the
2887 * @exception IndexOutOfBoundsException if <code>offset</code> is
2889 * <code>offset+count</code> is larger than
2892 public static String valueOf(char data[], int offset, int count) {
2893 return new String(data, offset, count);
2901 * @param offset initial offset of the subarray.
2906 public static String copyValueOf(char data[], int offset, int count) {
2908 return new String(data, offset, count);