StringWithPad

implicit
class StringWithPad(s: String)

String padding functions

class Object
trait Matchable
class Any

Value members

Concrete methods

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

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

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

Value Params
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 Params
length

The length to pad to.