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

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

Moduleghc-boot-9.14.1Haskell2010

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
  • Packageghc-boot-9.14.1
  • Exports19
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUTF8.hs

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