yamlet
Safe HaskellNone
LanguageGHC2021

Yamlet.Internal.Chars

Contents

Description

The bytes of UTF-8 encoded YAML and the classes of characters that the parser, the renderer and the error messages share.

This module is intended for internal use only, and may change without warning in subsequent releases.

Synopsis

Characters

pattern TAB :: Word8 Source #

pattern LF :: Word8 Source #

pattern CR :: Word8 Source #

pattern SPACE :: Word8 Source #

pattern EXCL :: Word8 Source #

pattern DQUOTE :: Word8 Source #

pattern HASH :: Word8 Source #

pattern PERCENT :: Word8 Source #

pattern AMP :: Word8 Source #

pattern SQUOTE :: Word8 Source #

pattern STAR :: Word8 Source #

pattern PLUS :: Word8 Source #

pattern COMMA :: Word8 Source #

pattern MINUS :: Word8 Source #

pattern DOT :: Word8 Source #

pattern DIGIT_0 :: Word8 Source #

pattern DIGIT_1 :: Word8 Source #

pattern DIGIT_9 :: Word8 Source #

pattern COLON :: Word8 Source #

pattern LESS :: Word8 Source #

pattern GREATER :: Word8 Source #

pattern QUESTION :: Word8 Source #

pattern AT :: Word8 Source #

pattern UPPER_A :: Word8 Source #

pattern UPPER_F :: Word8 Source #

pattern UPPER_Z :: Word8 Source #

pattern LBRACKET :: Word8 Source #

pattern BACKSLASH :: Word8 Source #

pattern RBRACKET :: Word8 Source #

pattern GRAVE :: Word8 Source #

pattern LOWER_A :: Word8 Source #

pattern LOWER_F :: Word8 Source #

pattern LOWER_U :: Word8 Source #

pattern LOWER_Z :: Word8 Source #

pattern LBRACE :: Word8 Source #

pattern PIPE :: Word8 Source #

pattern RBRACE :: Word8 Source #

pattern DEL :: Word8 Source #

isWhite :: Word8 -> Bool Source #

isBreak :: Word8 -> Bool Source #

isAsciiByte :: Word8 -> Bool Source #

asciiChar :: (Word8 -> Bool) -> Char -> Bool Source #

A predicate on bytes for a character, e.g. isFlowIndicator for the emitter. A character beyond ASCII does not satisfy it.

isCharStart :: Word8 -> Bool Source #

The byte starts a character in UTF-8, i.e. it is not a continuation byte.

isNsChar :: Word8 -> Bool Source #

ns-char. Every byte of a multibyte character counts, because the input contains printable characters only, except in quoted scalars, which the parser checks after it parses the stream.

isFlowIndicator :: Word8 -> Bool Source #

isIndicator :: Word8 -> Bool Source #

isDecDigit :: Word8 -> Bool Source #

isHexDigit' :: Word8 -> Bool Source #

hexValue :: Word8 -> Int Source #

isWordChar :: Word8 -> Bool Source #

isUriChar :: Word8 -> Bool Source #

ns-uri-char without the escaped characters.

isTagChar :: Word8 -> Bool Source #

ns-tag-char without the escaped characters.

isAnchorChar :: Word8 -> Bool Source #

bomLength :: Int Source #

The number of bytes of a byte order mark, U+FEFF in UTF-8.

isBomIn :: Array -> Int -> Int -> Bool Source #

A byte order mark at the index of the array, before the end index.

skipBomsIn :: Array -> Int -> Int -> Int Source #

The index after the byte order marks at the index of the array, before the end index.