Decode a single character at the given Addr#.
Moduleghc-boot-10.0.0.20260917GHC2024
GHC.Utils.Encoding.UTF8
Simple, non-streaming Modified 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.
Synopsis
- value utf8DecodeCharAddr#
- value utf8DecodeCharPtr
- value utf8DecodeCharByteArray#
- value utf8PrevChar
- value utf8CharStart
- value utf8UnconsByteString
- value utf8DecodeByteString
- value utf8DecodeShortByteString
- value utf8DecodeForeignPtr
- value utf8DecodeByteArray#
- value utf8CountCharsShortByteString
- value utf8CountCharsByteArray#
- value utf8CompareByteArray#
- value utf8CompareShortByteString
- value utf8EncodeByteArray#
- value utf8EncodePtr
- value utf8EncodeByteString
- value utf8EncodeShortByteString
- value utf8EncodedLength
- Packageghc-boot-10.0.0.20260917
- Exports19
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceUTF8.hs
Decoding single characters
Decode 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
Decode a ByteString containing a UTF-8 string.
Counting characters
Comparison
Encoding strings
Encode a String into a ByteString.