-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | utf8-light -- -- Lightweight UTF8 handling. Haddock docs are at -- http://code.haskell.org/~morrow/code/haskell/utf8-light/haddock/. @package utf8-light @version 0.1 module Encoding.UTF8.Light -- | Instances: ByteString, String, [Int] class UTF8 a encode :: (UTF8 a) => a -> ByteString decode :: (UTF8 a) => ByteString -> a -- | Length in Word8s XXX: use (<) instead of shiftR and (==) lenUTF8 :: Word8 -> Int -- | Length in Word16s lenUTF16 :: Word16 -> Int -- | Lengths in Word8s countUTF8 :: ByteString -> [Int] decodeUTF8 :: ByteString -> [Int] encodeUTF8 :: [Int] -> ByteString encodeUTF8' :: [Int] -> [[Word8]] withUTF8 :: (UTF8 a) => a -> (ByteString -> b) -> b putUTF8 :: (UTF8 a) => a -> IO () putUTF8Ln :: (UTF8 a) => a -> IO () hPutUTF8 :: (UTF8 a) => Handle -> a -> IO () hPutUTF8Ln :: (UTF8 a) => Handle -> a -> IO () readUTF8File :: (UTF8 a) => FilePath -> IO a writeUTF8File :: (UTF8 a) => FilePath -> a -> IO () appendUTF8File :: (UTF8 a) => FilePath -> a -> IO () hGetUTF8Line :: (UTF8 a) => Handle -> IO a hGetUTF8Contents :: (UTF8 a) => Handle -> IO a -- | Be careful that you're sure you're not chopping a UTF8 char in two! hGetUTF8 :: (UTF8 a) => Handle -> Int -> IO a -- | Same warning as for hGetUTF8 hGetUTF8NonBlocking :: (UTF8 a) => Handle -> Int -> IO a -- |
--   ghci> putUTF8Ln $ flipUTF8 "[?np_bs!]"
--   [sqbu]
--   
flipUTF8 :: (UTF8 a) => a -> a -- |
--   ghci> putUTF8Ln $ (unflipUTF8 . flipUTF8) "[?np_bs!]"
--   [?np_bs!]
--   
unflipUTF8 :: (UTF8 a) => a -> a flipTab :: [(Int, Int)] unflipTab :: [(Int, Int)] showHex :: Int -> String toBits :: Word8 -> [Word8] fromBits :: [Word8] -> Word8 instance UTF8 String instance UTF8 [Int] instance UTF8 ByteString