regex-do-3.2.2: PCRE wrapper
Safe HaskellSafe
LanguageHaskell2010

Text.Regex.Do.Pad

Synopsis

Documentation

pad :: Char -> Int -> String -> String Source #

pad String with Char to total length of Int

pad on left

>>> pad '-' 5 "abc"

"--abc"

pad' :: Char -> Int -> String -> String Source #

pad on right

>>> pad' '-' 5 "abc"

"abc--"