text-compression-0.1.0.8: A text compression library.
Copyright(c) Matthew Mosior 2022
LicenseBSD-style
Maintainermattm.github@gmail.com
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RLE

Description

Run-length encoding (RLE)

Synopsis

Documentation

bytestringToBWTToRLEB :: ByteString -> RLEB Source #

Helper function for converting a ByteString to a RLEB via a BWT first.

bytestringToBWTToRLET :: ByteString -> RLET Source #

Helper function for converting a ByteString to a RLET via a BWT first.

textToBWTToRLEB :: Text -> RLEB Source #

Helper function for converting a Text to a RLEB via a BWT first.

textToBWTToRLET :: Text -> RLET Source #

Helper function for converting a Text to a RLET via a BWT first.

textBWTToRLEB :: TextBWT -> RLEB Source #

Take a BWT of Word8s and generate the Run-length encoding (RLEB).

bytestringBWTToRLEB :: BWT Word8 -> RLEB Source #

Take a BWT of Word8s and generate the Run-length encoding (RLEB).

textBWTToRLET :: TextBWT -> RLET Source #

Take a BWT of Word8s and generate the Run-length encoding (RLEB).

bytestringBWTToRLET :: BWT Word8 -> RLET Source #

Take a BWT of Word8s and generate the Run-length encoding (RLET).

textToRLEB :: Vector (Maybe Text) -> RLEB Source #

Takes a Text and returns the Run-length encoding (RLEB).

bytestringToRLEB :: Vector (Maybe ByteString) -> RLEB Source #

Takes a Vector of ByteStrings and returns the Run-length encoding (RLEB).

textToRLET :: Vector (Maybe Text) -> RLET Source #

Takes a Text and returns the Run-length encoding (RLE).

bytestringToRLET :: Vector (Maybe ByteString) -> RLET Source #

Takes a ByteString and returns the Run-length encoding (RLE).

bytestringFromBWTFromRLEB :: RLEB -> ByteString Source #

Helper function for converting a BWTed RLEB back to the original ByteString.

bytestringFromBWTFromRLET :: RLET -> ByteString Source #

Helper function for converting a BWTed RLET back to the original ByteString.

textFromBWTFromRLEB :: RLEB -> Text Source #

Helper function for converting a BWTed RLEB back to the original Text.

textFromBWTFromRLET :: RLET -> Text Source #

Helper function for converting a BWTed RLET back to the original Text.

textBWTFromRLET :: RLET -> BWT Text Source #

Takes a RLET and returns the BWT of Texts.

bytestringBWTFromRLET :: RLET -> BWT ByteString Source #

Takes a RLET and returns the BWT of ByteStrings.

textBWTFromRLEB :: RLEB -> BWT Text Source #

Takes a RLEB and returns the BWT of Texts.

textFromRLEB :: RLEB -> Vector (Maybe Text) Source #

Takes a RLEB and returns the original Vector of Texts.

bytestringFromRLEB :: RLEB -> Vector (Maybe ByteString) Source #

Takes a RLEB and returns the original Vector of ByteStrings.

textFromRLET :: RLET -> Vector (Maybe Text) Source #

Takes a RLET and returns the original Vector of Texts.

bytestringFromRLET :: RLET -> Vector (Maybe ByteString) Source #

Takes a RLET and returns the original Vector of ByteStrings.