paripari-0.1.0.0: Fast-path parser combinators with fallback for error reporting

Safe HaskellNone
LanguageHaskell2010

Text.PariPari.Decode

Synopsis

Documentation

utf8Decode :: ForeignPtr Word8 -> Int -> (Char, Int) Source #

Decode UTF-8 character at the given offset relative to the pointer

utf8DecodeFixed :: Int -> ForeignPtr Word8 -> Int -> Char Source #

Decode UTF-8 character with known width at the given offset relative to the pointer

utf8Width :: Char -> Int Source #

Bytes width of an UTF-8 character