Lines Matching defs:start

365      * @param      srcBegin   start copying at this offset.
514 * index {@code start}, are appended, in order, to the contents of
516 * of this sequence is increased by the value of {@code end - start}.
523 * <i>k+start-n</i> in the argument {@code s}.
530 * @param start the starting index of the subsequence to be appended.
534 * {@code start} is negative, or
535 * {@code start} is greater than {@code end} or
540 public AbstractStringBuilder append(CharSequence s, int start, int end) {
543 if ((start < 0) || (start > end) || (end > s.length()))
545 "start " + start + ", end " + end + ", s.length() "
547 int len = end - start;
549 for (int i = start, j = count; i < end; i++, j++)
757 * The substring begins at the specified {@code start} and extends to
760 * {@code start} is equal to {@code end}, no changes are made.
762 * @param start The beginning index, inclusive.
765 * @throws StringIndexOutOfBoundsException if {@code start}
770 public AbstractStringBuilder delete(int start, int end) {
771 if (start < 0)
772 throw new StringIndexOutOfBoundsException(start);
775 if (start > end)
777 int len = end - start;
779 System.arraycopy(value, start+len, value, start, count-end);
851 * begins at the specified {@code start} and extends to the character
855 * {@code String} is inserted at {@code start}. (This
859 * @param start The beginning index, inclusive.
863 * @throws StringIndexOutOfBoundsException if {@code start}
868 public AbstractStringBuilder replace(int start, int end, String str) {
869 if (start < 0)
870 throw new StringIndexOutOfBoundsException(start);
871 if (start > count)
872 throw new StringIndexOutOfBoundsException("start > length()");
873 if (start > end)
874 throw new StringIndexOutOfBoundsException("start > end");
879 int newCount = count + len - (end - start);
882 System.arraycopy(value, end, value, start + len, count - end);
883 str.getChars(value, start);
894 * @param start The beginning index, inclusive.
896 * @throws StringIndexOutOfBoundsException if {@code start} is
899 public String substring(int start) {
900 return substring(start, count);
919 * @param start the start index, inclusive.
924 * if {@code start} or {@code end} are negative,
926 * or if {@code start} is greater than {@code end}
930 public CharSequence subSequence(int start, int end) {
931 return substring(start, end);
937 * substring begins at the specified {@code start} and
940 * @param start The beginning index, inclusive.
943 * @throws StringIndexOutOfBoundsException if {@code start}
945 * {@code length()}, or {@code start} is
948 public String substring(int start, int end) {
949 if (start < 0)
950 throw new StringIndexOutOfBoundsException(start);
953 if (start > end)
954 throw new StringIndexOutOfBoundsException(end - start);
955 return new String(value, start, end - start);
1136 * {@code start} and {@code end} are inserted,
1139 * sequence is increased by {@code end - start}.
1145 * <li>the character at index <i>k</i>{@code +start-dstOffset} in
1147 * {@code dstOffset} but is less than {@code dstOffset+end-start}
1148 * <li>the character at index <i>k</i>{@code -(end-start)} in this
1150 * {@code dstOffset+end-start}
1155 * <p>The start argument must be nonnegative, and not greater than
1158 * {@code start}, and less than or equal to the length of s.
1166 * @param start the starting index of the subsequence to be inserted.
1171 * {@code start} or {@code end} are negative, or
1172 * {@code start} is greater than {@code end} or
1177 int start, int end) {
1182 if ((start < 0) || (end < 0) || (start > end) || (end > s.length()))
1184 "start " + start + ", end " + end + ", s.length() "
1186 int len = end - start;
1190 for (int i=start; i<end; i++)
1374 * @param fromIndex the index from which to start the search.
1414 * @param fromIndex the index to start the search from.