| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- pattern TAB :: Word8
- pattern LF :: Word8
- pattern CR :: Word8
- pattern SPACE :: Word8
- pattern EXCL :: Word8
- pattern DQUOTE :: Word8
- pattern HASH :: Word8
- pattern PERCENT :: Word8
- pattern AMP :: Word8
- pattern SQUOTE :: Word8
- pattern STAR :: Word8
- pattern PLUS :: Word8
- pattern COMMA :: Word8
- pattern MINUS :: Word8
- pattern DOT :: Word8
- pattern DIGIT_0 :: Word8
- pattern DIGIT_1 :: Word8
- pattern DIGIT_9 :: Word8
- pattern COLON :: Word8
- pattern LESS :: Word8
- pattern GREATER :: Word8
- pattern QUESTION :: Word8
- pattern AT :: Word8
- pattern UPPER_A :: Word8
- pattern UPPER_F :: Word8
- pattern UPPER_Z :: Word8
- pattern LBRACKET :: Word8
- pattern BACKSLASH :: Word8
- pattern RBRACKET :: Word8
- pattern GRAVE :: Word8
- pattern LOWER_A :: Word8
- pattern LOWER_F :: Word8
- pattern LOWER_U :: Word8
- pattern LOWER_Z :: Word8
- pattern LBRACE :: Word8
- pattern PIPE :: Word8
- pattern RBRACE :: Word8
- pattern DEL :: Word8
- isWhite :: Word8 -> Bool
- isBreak :: Word8 -> Bool
- isAsciiByte :: Word8 -> Bool
- asciiChar :: (Word8 -> Bool) -> Char -> Bool
- isCharStart :: Word8 -> Bool
- isNsChar :: Word8 -> Bool
- isFlowIndicator :: Word8 -> Bool
- isIndicator :: Word8 -> Bool
- isDecDigit :: Word8 -> Bool
- isHexDigit' :: Word8 -> Bool
- hexValue :: Word8 -> Int
- isWordChar :: Word8 -> Bool
- isUriChar :: Word8 -> Bool
- isTagChar :: Word8 -> Bool
- isAnchorChar :: Word8 -> Bool
- bomLength :: Int
- isBomIn :: Array -> Int -> Int -> Bool
- skipBomsIn :: Array -> Int -> Int -> Int
Characters
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 #
isWordChar :: Word8 -> Bool Source #
isAnchorChar :: Word8 -> Bool Source #
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.