MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / leftPad

Method leftPad

jOOQ/src/main/java/org/jooq/tools/StringUtils.java:465–467  ·  view source on GitHub ↗

Left pad a String with spaces (' '). The String is padded to the size of size . StringUtils.leftPad(null, ) = null StringUtils.leftPad("", 3) = " " StringUtils.leftPad("bat", 3) = "bat" StringUtils.leftPad("bat", 5) = " bat" StringUtils.leftPad("bat", 1)

(String str, int size)

Source from the content-addressed store, hash-verified

463 * <code>null</code> if null String input
464 */
465 public static String leftPad(String str, int size) {
466 return leftPad(str, size, ' ');
467 }
468
469 public static String leftPad(String str, int strSize, int size) {
470 return leftPad(str, strSize, size, ' ');

Callers 9

toStringMethod · 0.95
toStringMethod · 0.95
indentationMethod · 0.95
formatMethod · 0.80
formatMethod · 0.80
padLead2Method · 0.80
padLead4Method · 0.80
padMid2Method · 0.80
toPGString0Method · 0.80

Calls 6

paddingMethod · 0.95
isEmptyMethod · 0.95
lengthMethod · 0.65
concatMethod · 0.65
substringMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected