Copyright | 2021 Dominik Schrempf |
---|---|
License | GPL-3.0-or-later |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creation date: Thu Feb 14 13:24:53 2019.
indispensable tools for ByteString handling :).
Synopsis
- alignRightWith :: Char -> Int -> ByteString -> ByteString
- alignRight :: Int -> ByteString -> ByteString
- alignLeftWith :: Char -> Int -> ByteString -> ByteString
- alignLeft :: Int -> ByteString -> ByteString
ByteString handling
alignRightWith :: Char -> Int -> ByteString -> ByteString Source #
For a given width, align string to the right; use given fill character; trim on the left if string is longer.
alignRight :: Int -> ByteString -> ByteString Source #
For a given width, align string to the right; trim on the left if string is longer.
alignLeftWith :: Char -> Int -> ByteString -> ByteString Source #
For a given width, align string to the left; use given fill character; trim on the right if string is longer.
alignLeft :: Int -> ByteString -> ByteString Source #
For a given width, align string to the left; trim on the right if string is longer.