Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- encodeGenUTF8 :: String -> (SlicedByteArray, UTF8Encoding)
- data UTF8Encoding
- decodeGenUTF8 :: ByteArray -> String
- isSurrogate :: Char -> Bool
- isValid :: UTF8Encoding -> [Word8] -> Bool
Documentation
encodeGenUTF8 :: String -> (SlicedByteArray, UTF8Encoding) Source #
Encode a string as (generalized) UTF-8. In addition to the encoding, we return a flag indicating whether the encoded string contained any surrogate characters, in which case the output is generalized UTF-8.
data UTF8Encoding Source #
Instances
Eq UTF8Encoding Source # | |
Defined in Codec.Serialise.Internal.GeneralisedUTF8 (==) :: UTF8Encoding -> UTF8Encoding -> Bool # (/=) :: UTF8Encoding -> UTF8Encoding -> Bool # | |
Show UTF8Encoding Source # | |
Defined in Codec.Serialise.Internal.GeneralisedUTF8 showsPrec :: Int -> UTF8Encoding -> ShowS # show :: UTF8Encoding -> String # showList :: [UTF8Encoding] -> ShowS # |
decodeGenUTF8 :: ByteArray -> String Source #