| encode :: enc -> String -> ByteString |
| Encode a String into a strict ByteString. Throws the
HasNoRepresentation-Exception if it encounters an unrepresentable
character.
|
|
| encodeLazy :: enc -> String -> ByteString |
| Encode a String into a lazy ByteString.
|
|
| encodable :: enc -> Char -> Bool |
| Whether or not the given Char is representable in this encoding. Default: True.
|
|
| decode :: enc -> ByteString -> String |
| Decode a strict ByteString into a String. If the string is not
decodable, a DecodingException is thrown.
|
|
| decodeLazy :: enc -> ByteString -> String |
|
| decodable :: enc -> ByteString -> Bool |
| Whether or no a given ByteString is decodable. Default: True.
|