Lines Matching defs:offset

292      * Returns the index within this sequence that is offset from the
298 * @param index the index to be offset
299 * @param codePointOffset the offset in code points
330 * @param srcBegin start copying at this offset.
331 * @param srcEnd stop copying at this offset.
333 * @param dstBegin offset into <code>dst</code>.
516 * index {@code offset}, are appended, in order, to the contents
526 * @param offset the index of the first {@code char} to append.
530 * if {@code offset < 0} or {@code len < 0}
531 * or {@code offset+len > str.length}
533 public AbstractStringBuilder append(char str[], int offset, int len) {
536 System.arraycopy(str, offset, value, count, len);
879 * specified {@code offset} and extends {@code len} {@code char}s.
886 * @param offset the index of the first {@code char} in subarray to
893 * {@code offset} or {@code len} are negative, or
894 * {@code (offset+len)} is greater than
897 public AbstractStringBuilder insert(int index, char[] str, int offset,
902 if ((offset < 0) || (len < 0) || (offset > str.length - len))
904 "offset " + offset + ", len " + len + ", str.length "
908 System.arraycopy(str, offset, value, index, len);
921 * sequence at the indicated offset.
923 * The {@code offset} argument must be greater than or equal to
927 * @param offset the offset.
930 * @throws StringIndexOutOfBoundsException if the offset is invalid.
932 public AbstractStringBuilder insert(int offset, Object obj) {
933 return insert(offset, String.valueOf(obj));
940 * order, into this sequence at the indicated offset, moving up any
950 * <i>k</i> is less than {@code offset}
951 * <li>the character at index <i>k</i>{@code -offset} in the
953 * {@code offset} but is less than {@code offset+str.length()}
956 * {@code offset+str.length()}
958 * The {@code offset} argument must be greater than or equal to
962 * @param offset the offset.
965 * @throws StringIndexOutOfBoundsException if the offset is invalid.
967 public AbstractStringBuilder insert(int offset, String str) {
968 if ((offset < 0) || (offset > length()))
969 throw new StringIndexOutOfBoundsException(offset);
974 System.arraycopy(value, offset, value, offset + len, count - offset);
975 str.getChars(value, offset);
986 * {@code offset}. The length of this sequence increases by
993 * sequence at the indicated offset.
995 * The {@code offset} argument must be greater than or equal to
999 * @param offset the offset.
1002 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1004 public AbstractStringBuilder insert(int offset, char[] str) {
1005 if ((offset < 0) || (offset > length()))
1006 throw new StringIndexOutOfBoundsException(offset);
1009 System.arraycopy(value, offset, value, offset + len, count - offset);
1010 System.arraycopy(str, 0, value, offset, len);
1019 * in order, into this sequence at the indicated offset, moving up
1031 * @param dstOffset the offset.
1034 * @throws IndexOutOfBoundsException if the offset is invalid.
1050 * in order, into this sequence at the specified destination offset, moving
1077 * @param dstOffset the offset in this sequence.
1116 * sequence at the indicated offset.
1118 * The {@code offset} argument must be greater than or equal to
1122 * @param offset the offset.
1125 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1127 public AbstractStringBuilder insert(int offset, boolean b) {
1128 return insert(offset, String.valueOf(b));
1139 * sequence at the indicated offset.
1141 * The {@code offset} argument must be greater than or equal to
1145 * @param offset the offset.
1148 * @throws IndexOutOfBoundsException if the offset is invalid.
1150 public AbstractStringBuilder insert(int offset, char c) {
1152 System.arraycopy(value, offset, value, offset + 1, count - offset);
1153 value[offset] = c;
1166 * sequence at the indicated offset.
1168 * The {@code offset} argument must be greater than or equal to
1172 * @param offset the offset.
1175 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1177 public AbstractStringBuilder insert(int offset, int i) {
1178 return insert(offset, String.valueOf(i));
1189 * sequence at the indicated offset.
1191 * The {@code offset} argument must be greater than or equal to
1195 * @param offset the offset.
1198 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1200 public AbstractStringBuilder insert(int offset, long l) {
1201 return insert(offset, String.valueOf(l));
1212 * sequence at the indicated offset.
1214 * The {@code offset} argument must be greater than or equal to
1218 * @param offset the offset.
1221 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1223 public AbstractStringBuilder insert(int offset, float f) {
1224 return insert(offset, String.valueOf(f));
1235 * sequence at the indicated offset.
1237 * The {@code offset} argument must be greater than or equal to
1241 * @param offset the offset.
1244 * @throws StringIndexOutOfBoundsException if the offset is invalid.
1246 public AbstractStringBuilder insert(int offset, double d) {
1247 return insert(offset, String.valueOf(d));