HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

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.

  • 19 values

Decoding single characters

6 declarations
valueutf8PrevChar :: Ptr Word8 -> IO (Ptr Word8)
#

Find the start of the codepoint preceding the codepoint at the given Ptr. This is undefined if there is no previous valid codepoint.

Decoding strings

4 declarations

Counting characters

2 declarations

Comparison

2 declarations

Encoding strings

5 declarations