StringWithPad

implicit class StringWithPad(s: String)
class Object
trait Matchable
class Any

Value members

Concrete methods

def padStr(length: Int, padChar: Char): String

Left-pads a string to a specified length with a specified character.

Left-pads a string to a specified length with a specified character.

Value parameters:
length

The length to pad to.

padChar

The character to pad with.

def padZero(length: Int): String

Left-pads a string to a certain length with zero (mostly used for binary strings).

Left-pads a string to a certain length with zero (mostly used for binary strings).

Value parameters:
length

The length to pad to.