ghc-7.10.2: The GHC API

Safe Haskell | None
Language | Haskell2010

Encoding

Contents

- UTF-8
- Z-encoding

Synopsis

- utf8DecodeChar# :: Addr# -> (#Char#, Int##)
- utf8PrevChar :: Ptr Word8 -> IO (Ptr Word8)
- utf8CharStart :: Ptr Word8 -> IO (Ptr Word8)
- utf8DecodeChar :: Ptr Word8 -> (Char, Int)
- utf8DecodeString :: Ptr Word8 -> Int -> IO [Char]
- utf8EncodeChar :: Char -> Ptr Word8 -> IO (Ptr Word8)
- utf8EncodeString :: Ptr Word8 -> String -> IO ()
- utf8EncodedLength :: String -> Int
- countUTF8Chars :: Ptr Word8 -> Int -> IO Int
- zEncodeString :: UserString -> EncodedString
- zDecodeString :: EncodedString -> UserString

# UTF-8

utf8DecodeChar# :: Addr# -> (#Char#, Int##) Source

utf8PrevChar :: Ptr Word8 -> IO (Ptr Word8) Source

utf8CharStart :: Ptr Word8 -> IO (Ptr Word8) Source

utf8DecodeChar :: Ptr Word8 -> (Char, Int) Source

utf8DecodeString :: Ptr Word8 -> Int -> IO [Char] Source

utf8EncodeChar :: Char -> Ptr Word8 -> IO (Ptr Word8) Source

utf8EncodeString :: Ptr Word8 -> String -> IO () Source

utf8EncodedLength :: String -> Int Source

countUTF8Chars :: Ptr Word8 -> Int -> IO Int Source

# Z-encoding

zEncodeString :: UserString -> EncodedString Source

zDecodeString :: EncodedString -> UserString Source