bytesmith-0.3.6.0: Nonresumable byte parser

Safe HaskellNone
LanguageHaskell2010

Data.Bytes.Parser.Utf8

Contents

Description

Parse input as UTF-8-encoded text. Parsers in this module will fail if they encounter a byte above 0x7F.

Synopsis

Get Character

any# :: e -> Parser e s Char# Source #

Interpret the next one to four bytes as a UTF-8-encoded character. Fails if the decoded codepoint is in the range U+D800 through U+DFFF.

shortText :: e -> ShortText -> Parser e s () Source #

Consume input that matches the argument. Fails if the input does not match.