bitset-word8-0.1.0.0: Space efficient set of Word8 and some pre-canned sets useful for parsing HTTP

Copyright(c) Naoto Shimazaki 2017
LicenseMIT (see the file LICENSE)
Maintainerhttps://github.com/nshimaza
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.BitSetWord8.Internal

Description

Space efficient set of Word8 and some pre-canned sets useful for parsing HTTP related ByteString. This file contains additional useful character sets but they aren't evaluated at compile time.

Synopsis

Documentation

newtype BitSetWord8 Source #

Bitwise set of Word8. Space efficient backend and O(1) membership test.

Constructors

BitSetWord8 ByteString 

rfc5234Digit' :: [Char] Source #

DIGIT of RFC5324 in Char list.

rfc2616UpAlpha' :: [Char] Source #

UPALPHA of RFC2616 in Char list. Note that RFC2616 has been obsoleted by RFC7230 and RFC7230 doesn't define UPALPHA.

rfc2616LoAlpha' :: [Char] Source #

LOALPHA of RFC2616 in Char list. Note that RFC2616 has been obsoleted by RFC7230 and RFC7230 doesn't define LOALPHA.

rfc5234Alpha' :: [Char] Source #

ALPHA of RFC5324 in Char list.

rfc5234HexDig' :: [Char] Source #

HEXDIG of RFC5324 in Char list.

rfc5234VChar' :: [Char] Source #

VCHAR of RFC5324 in Char list.

rfc5324Wsp' :: [Char] Source #

WSP (aka white space) of RFC5324 in Char list.

rfc3986SubDelims' :: [Char] Source #

sub-delim of RFC3986 in Char list.

rfc3986GenDelims' :: [Char] Source #

gen-delim of RFC3986 in Char list.

rfc3986Reserved' :: [Char] Source #

reserved of RFC3986 in Char list.

rfc3986Unreserved' :: [Char] Source #

unreserved of RFC3986 in Char list.

rfc3986PctEncodedChar' :: [Char] Source #

pct-encoded of RFC3986 in Char list.

rfc3986PChar' :: [Char] Source #

pchar of RFC3986 in Char list.

rfc3986UriReference' :: [Char] Source #

URI-Reference of RFC3986 in Char list.

rfc7230TChar' :: [Char] Source #

tchar of RFC7230 in Char list.

rfc7230ObsText' :: [Char] Source #

obs-text of RFC7230 in Char list.

rfc7230QDText' :: [Char] Source #

qdtext of RFC7230 in Char list.

rfc7230QuotedPair' :: [Char] Source #

quoted-pair of RFC7230 in Char list.

member :: BitSetWord8 -> Word8 -> Bool Source #

O(1). Return True if given Word8 is a member of given BitSetWord8.

toWord8Set :: [Char] -> Set Word8 Source #

Convert given list of Char into Set of Word8. Any Char having code point greater than 0xff is ignored.

toBoolList :: Set Word8 -> [Bool] Source #

Convert Set of Word8 to full filled list of boolean existence flag.

toWord8 :: [Bool] -> Word8 Source #

Pack 8 of boolean list into single Word8 bitwise set.

toWord8List :: [Bool] -> [Word8] Source #

Convert full filled boolean list into 32 packed Word8 list.

fromList :: [Char] -> BitSetWord8 Source #

Convert given List of Char into packed bitwise set of Word8. Any Char having code point greater than 0xff is ignored.