MCPcopy Index your code
hub / github.com/davidgiven/luje / insert0

Method insert0

lib/java/lang/AbstractStringBuilder.java:289–298  ·  view source on GitHub ↗
(int index, char[] chars)

Source from the content-addressed store, hash-verified

287 }
288
289 final void insert0(int index, char[] chars) {
290 if (0 > index || index > count) {
291 throw new StringIndexOutOfBoundsException(index);
292 }
293 if (chars.length != 0) {
294 move(chars.length, index);
295 System.arraycopy(chars, 0, value, index, chars.length);
296 count += chars.length;
297 }
298 }
299
300 final void insert0(int index, char[] chars, int start, int length) {
301 if (0 <= index && index <= count) {

Callers 3

replace0Method · 0.95
insertMethod · 0.80
insertMethod · 0.80

Calls 6

moveMethod · 0.95
arraycopyMethod · 0.95
lengthMethod · 0.65
toStringMethod · 0.65
subSequenceMethod · 0.65
getCharsMethod · 0.45

Tested by

no test coverage detected