Lines Matching refs:str

399      * argument. If {@code str} is {@code null}, then the four
407 * <i>k-n</i> in the argument {@code str}.
409 * @param str a string.
412 public AbstractStringBuilder append(String str) {
413 if (str == null) str = "null";
414 int len = str.length();
416 str.getChars(0, len, value, count);
500 * @param str the characters to be appended.
503 public AbstractStringBuilder append(char[] str) {
504 int len = str.length;
506 System.arraycopy(str, 0, value, count, len);
515 * Characters of the {@code char} array {@code str}, starting at
525 * @param str the characters to be appended.
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);
781 * @param str String that will replace previous contents.
787 public AbstractStringBuilder replace(int start, int end, String str) {
797 int len = str.length();
802 str.getChars(value, start);
877 * Inserts the string representation of a subarray of the {@code str}
885 * @param str A {@code char} array.
895 * {@code str.length}.
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 "
905 + str.length);
908 System.arraycopy(str, offset, value, index, len);
943 * {@code str} is {@code null}, then the four characters
952 * argument {@code str}, if <i>k</i> is not less than
953 * {@code offset} but is less than {@code offset+str.length()}
954 * <li>the character at index <i>k</i>{@code -str.length()} in the
956 * {@code offset+str.length()}
963 * @param str a string.
967 public AbstractStringBuilder insert(int offset, String str) {
970 if (str == null)
971 str = "null";
972 int len = str.length();
975 str.getChars(value, offset);
1000 * @param str a character array.
1004 public AbstractStringBuilder insert(int offset, char[] str) {
1007 int len = str.length;
1010 System.arraycopy(str, 0, value, offset, len);
1255 * this.toString().startsWith(str, <i>k</i>)
1259 * @param str any string.
1264 * @throws java.lang.NullPointerException if <code>str</code> is
1267 public int indexOf(String str) {
1268 return indexOf(str, 0);
1276 * k >= Math.min(fromIndex, str.length()) &&
1277 * this.toString().startsWith(str, k)
1281 * @param str the substring for which to search.
1285 * @throws java.lang.NullPointerException if <code>str</code> is
1288 public int indexOf(String str, int fromIndex) {
1290 str.toCharArray(), 0, str.length(), fromIndex);
1299 * this.toString().startsWith(str, k)
1303 * @param str the substring to search for.
1308 * @throws java.lang.NullPointerException if <code>str</code> is
1311 public int lastIndexOf(String str) {
1312 return lastIndexOf(str, count);
1320 * k <= Math.min(fromIndex, str.length()) &&
1321 * this.toString().startsWith(str, k)
1325 * @param str the substring to search for.
1329 * @throws java.lang.NullPointerException if <code>str</code> is
1332 public int lastIndexOf(String str, int fromIndex) {
1334 str.toCharArray(), 0, str.length(), fromIndex);