1081 |
return str; |
return str; |
1082 |
char[] newStr = new char[count + str.count]; |
char[] newStr = new char[count + str.count]; |
1083 |
System.arraycopy(value, offset, newStr, 0, count); |
System.arraycopy(value, offset, newStr, 0, count); |
1084 |
System.arraycopy(str.value, offset, newStr, count, str.count); |
System.arraycopy(str.value, str.offset, newStr, count, str.count); |
1085 |
// Package constructor avoids an array copy. |
// Package constructor avoids an array copy. |
1086 |
return new String(newStr, 0, newStr.length, true); |
return new String(newStr, 0, newStr.length, true); |
1087 |
} |
} |