| Copyright | (c) Dominik Schrempf 2019 |
|---|---|
| License | GPL-3 |
| Maintainer | dominik.schrempf@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
ELynx.Tools.ByteString
Contents
Description
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
- summarizeByteString :: Int -> ByteString -> ByteString
- c2w :: Char -> Word8
- w2c :: Word8 -> Char
- bsShow :: Show a => a -> 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.
summarizeByteString :: Int -> ByteString -> ByteString Source #
If a string is longer than a given value, trim it and add some dots.
bsShow :: Show a => a -> ByteString Source #
Conversion to ByteString.