Decode a single character at the given Addr#.
Moduleghc-boot-9.10.3Haskell2010
GHC.Utils.Encoding.UTF8
Simple, non-streaming UTF-8 codecs.
This is one of several UTF-8 implementations provided by GHC; see Note [GHC's many UTF-8 implementations] in GHC.Encoding.UTF8 for an overview.
- 19 values
- Packageghc-boot-9.10.3
- Exports19
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceUTF8.hs
Decoding single characters
6 declarationsDecode a single codepoint starting at the given Ptr.
Decode a single codepoint starting at the given byte offset into a ByteArray#.
Find the start of the codepoint preceding the codepoint at the given Ptr. This is undefined if there is no previous valid codepoint.
Find the start of the codepoint at the given Ptr. This is undefined if there is no previous valid codepoint.
Decoding strings
4 declarationsDecode a ByteString containing a UTF-8 string.
Counting characters
2 declarationsComparison
2 declarationsEncoding strings
5 declarationsEncode a String into a ByteString.