MCPcopy
hub / github.com/libgdx/libgdx / appendPadding

Method appendPadding

gdx/src/com/badlogic/gdx/utils/CharArray.java:1018–1025  ·  view source on GitHub ↗

Appends the pad character to this CharArray the specified number of times. @param padCount negative means no append

(int padCount, char padChar)

Source from the content-addressed store, hash-verified

1016 /** Appends the pad character to this CharArray the specified number of times.
1017 * @param padCount negative means no append */
1018 public CharArray appendPadding (int padCount, char padChar) {
1019 if (padCount > 0) {
1020 require(padCount);
1021 Arrays.fill(items, size, size + padCount, padChar);
1022 size += padCount;
1023 }
1024 return this;
1025 }
1026
1027 /** Appends a separator if this CharArray is currently non-empty. The separator is appended using {@link #append(char)}.
1028 * <p>

Callers 1

paddingTestMethod · 0.95

Calls 2

requireMethod · 0.95
fillMethod · 0.45

Tested by 1

paddingTestMethod · 0.76