 | utf8-string-0.3.5: Support for reading and writing UTF8 Strings | Contents | Index |
|
Codec.Binary.UTF8.Generic |
|
|
Description |
This module provides fast, validated encoding and decoding functions
between ByteStrings and Strings. It does not exactly match the
output of the Codec.Binary.UTF8.String output for invalid encodings
as the number of replacement characters is sometimes longer.
|
|
Synopsis |
|
|
|
Documentation |
|
class (Num s, Ord s) => UTF8Bytes b s | b -> s where |
| Methods | bsplit :: s -> b -> (b, b) | | bdrop :: s -> b -> b | | buncons :: b -> Maybe (Word8, b) | | elemIndex :: Word8 -> b -> Maybe s | | empty :: b | | null :: b -> Bool | | pack :: [Word8] -> b | | tail :: b -> b |
| | Instances | |
|
|
decode :: UTF8Bytes b s => b -> Maybe (Char, s) |
|
replacement_char :: Char |
This character is used to mark errors in a UTF8 encoded string.
|
|
uncons :: UTF8Bytes b s => b -> Maybe (Char, b) |
|
splitAt :: UTF8Bytes b s => s -> b -> (b, b) |
|
take :: UTF8Bytes b s => s -> b -> b |
|
drop :: UTF8Bytes b s => s -> b -> b |
|
span :: UTF8Bytes b s => (Char -> Bool) -> b -> (b, b) |
|
break :: UTF8Bytes b s => (Char -> Bool) -> b -> (b, b) |
|
fromString :: UTF8Bytes b s => String -> b |
|
toString :: UTF8Bytes b s => b -> String |
|
foldl :: UTF8Bytes b s => (a -> Char -> a) -> a -> b -> a |
|
foldr :: UTF8Bytes b s => (Char -> a -> a) -> a -> b -> a |
|
length :: UTF8Bytes b s => b -> s |
|
lines :: UTF8Bytes b s => b -> [b] |
|
lines' :: UTF8Bytes b s => b -> [b] |
|
Produced by Haddock version 2.3.0 |