elynx-tools-0.6.1.1: Tools for ELynx
Copyright(c) Dominik Schrempf 2021
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

ELynx.Tools.ByteString

Description

Creation date: Thu Feb 14 13:24:53 2019.

indispensable tools for ByteString handling :).

Synopsis

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.