Codec.Binary.QuotedPrintable

dataenc-0.13.0.4: Data encoding library

Codec.Binary.QuotedPrintable

Description

Implementation of Quoted-Printable based on RFC 2045 (http://tools.ietf.org/html/rfc2045).

This encoding encodes _everything_ that is passed in, it will not try to guess the native line ending for your architecture. In other words, if you are using this to encode text you need to split it into separate lines before encoding and chopping it up.

Further documentation and information can be found at http://www.haskell.org/haskellwiki/Library/Data_encoding.

Synopsis

- encode :: [Word8] -> String
- decode :: String -> Maybe [Word8]
- decode' :: String -> [Maybe Word8]
- chop :: Int -> String -> [String]
- unchop :: [String] -> String

# Documentation

encode :: [Word8] -> String

Encode data.

decode :: String -> Maybe [Word8]

Decode data (strict).

decode' :: String -> [Maybe Word8]

chop

Arguments

:: Int | length of individual lines (values `< 4` are ignored)
-> String |
-> [String] |

Chop up a string in parts.

unchop :: [String] -> String

Concatenate the list of strings into one long string.