Safe Haskell | Safe-Inferred |
---|---|
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
Show UTF8Encoding Source # | |
Defined in Codec.Serialise.Internal.GeneralisedUTF8 | |
Eq UTF8Encoding Source # | |
Defined in Codec.Serialise.Internal.GeneralisedUTF8 (==) :: UTF8Encoding -> UTF8Encoding -> Bool Source # (/=) :: UTF8Encoding -> UTF8Encoding -> Bool Source # |
decodeGenUTF8 :: ByteArray -> String Source #