| Copyright | (c) 2023 Pierre Le Marre |
|---|---|
| License | BSD-3-Clause |
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Unicode.Internal.Bits.Scripts
Contents
Description
Fast, static bitmap lookup utilities
Synopsis
- lookupWord8AsInt# :: Addr# -> Int# -> Int#
- lookupWord16AsInt# :: Addr# -> Int# -> Int#
- nextInt8# :: Addr# -> Int#
- nextInt32# :: Addr# -> Int#
- unpackCString# :: Addr# -> [Char]
Bitmap lookup
nextInt8# :: Addr# -> Int# Source #
nextInt8# addr looks up for the 8-bits word in
the bitmap starting at addr, then convert it to an Int#.
Since: 0.3.0
nextInt32# addr looks up for the 32-bits word in
the bitmap starting at addr, then convert it to an Int#.
Since: 0.3.0
CString
unpackCString# :: Addr# -> [Char] #