Z-Data-0.8.3.0: Array, vector and text
Copyright(c) Dong Han 2020
LicenseBSD
Maintainerwinterland1989@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Z.Data.ASCII

Description

ASCII Chars utility.

Synopsis

Documentation

w2c :: Word8 -> Char Source #

Conversion between Word8 and Char. Should compile to a no-op.

c2w :: Char -> Word8 Source #

Unsafe conversion between Char and Word8. This is a no-op and silently truncates to 8 bits Chars > \255.

isASCII :: Word8 -> Bool Source #

\NUL <= w && w <= \DEL

toLower :: Word8 -> Word8 Source #

A ~ Z => a ~ z

toUpper :: Word8 -> Word8 Source #

a ~ z => A ~ Z

toLowerLatin :: Word8 -> Word8 Source #

A ~ Z => a ~ z, À ~ Ö => à ~ ö, Ø ~ Þ => ø ~ þ

toUpperLatin :: Word8 -> Word8 Source #

a ~ z => A ~ Z, à ~ ö => À ~ Ö, ø ~ þ => Ø ~ Þ

isControl :: Word8 -> Bool Source #

ISO-8859-1 control letter.

isSpace :: Word8 -> Bool Source #

ISO-8859-1 space letter.

isHexDigit :: Word8 -> Bool Source #

0 ~ 9, A ~ F, a ~ f

pattern NUL :: Word8 Source #

\NUL

pattern SOH :: Word8 Source #

Start of Heading

pattern STX :: Word8 Source #

Start of Text

pattern ETX :: Word8 Source #

End of Text

pattern EOT :: Word8 Source #

End of Transmission

pattern ENQ :: Word8 Source #

Enquiry

pattern ACK :: Word8 Source #

Acknowledgment

pattern BEL :: Word8 Source #

Bell

pattern BS :: Word8 Source #

Back Space

pattern TAB :: Word8 Source #

\t

pattern NEWLINE :: Word8 Source #

\n

pattern VERTICAL_TAB :: Word8 Source #

\v

pattern FORM_FEED :: Word8 Source #

\f

pattern SO :: Word8 Source #

Shift Out / X-On

pattern SI :: Word8 Source #

Shift In / X-Off

pattern DLE :: Word8 Source #

Data Line Escape

pattern DC1 :: Word8 Source #

Device Control 1 (oft. XON)

pattern DC2 :: Word8 Source #

Device Control 2

pattern DC3 :: Word8 Source #

Device Control 3 (oft. XOFF)

pattern DC4 :: Word8 Source #

Device Control 4

pattern NAK :: Word8 Source #

Negative Acknowledgement

pattern SYN :: Word8 Source #

Synchronous Idle

pattern ETB :: Word8 Source #

End of Transmit Block

pattern CAN :: Word8 Source #

Cancel

pattern EM :: Word8 Source #

End of Medium

pattern SUB :: Word8 Source #

Substitute

pattern ESC :: Word8 Source #

Escape

pattern FS :: Word8 Source #

File Separator

pattern GS :: Word8 Source #

Group Separator

pattern RS :: Word8 Source #

Record Separator

pattern US :: Word8 Source #

Unit Separator

pattern SPACE :: Word8 Source #

' '

pattern EXCLAM :: Word8 Source #

!

pattern HASH :: Word8 Source #

#

pattern DOLLAR :: Word8 Source #

$

pattern PERCENT :: Word8 Source #

%

pattern AMPERSAND :: Word8 Source #

&

pattern AND :: Word8 Source #

&

pattern PAREN_LEFT :: Word8 Source #

(

pattern ASTERISK :: Word8 Source #

*

pattern PLUS :: Word8 Source #

+

pattern COMMA :: Word8 Source #

,

pattern HYPHEN :: Word8 Source #

-

pattern MINUS :: Word8 Source #

-

pattern PERIOD :: Word8 Source #

.

pattern DOT :: Word8 Source #

.

pattern SLASH :: Word8 Source #

/

pattern DIGIT_0 :: Word8 Source #

pattern DIGIT_1 :: Word8 Source #

pattern DIGIT_2 :: Word8 Source #

pattern DIGIT_3 :: Word8 Source #

pattern DIGIT_4 :: Word8 Source #

pattern DIGIT_5 :: Word8 Source #

pattern DIGIT_6 :: Word8 Source #

pattern DIGIT_7 :: Word8 Source #

pattern DIGIT_8 :: Word8 Source #

pattern DIGIT_9 :: Word8 Source #

pattern COLON :: Word8 Source #

:

pattern SEMICOLON :: Word8 Source #

;

pattern LESS :: Word8 Source #

<

pattern ANGLE_LEFT :: Word8 Source #

<

pattern EQUAL :: Word8 Source #

=

pattern GREATER :: Word8 Source #

>

pattern QUESTION :: Word8 Source #

?

pattern AT :: Word8 Source #

@

pattern LETTER_A :: Word8 Source #

pattern LETTER_B :: Word8 Source #

pattern LETTER_C :: Word8 Source #

pattern LETTER_D :: Word8 Source #

pattern LETTER_E :: Word8 Source #

pattern LETTER_F :: Word8 Source #

pattern LETTER_G :: Word8 Source #

pattern LETTER_H :: Word8 Source #

pattern LETTER_I :: Word8 Source #

pattern LETTER_J :: Word8 Source #

pattern LETTER_K :: Word8 Source #

pattern LETTER_L :: Word8 Source #

pattern LETTER_M :: Word8 Source #

pattern LETTER_N :: Word8 Source #

pattern LETTER_O :: Word8 Source #

pattern LETTER_P :: Word8 Source #

pattern LETTER_Q :: Word8 Source #

pattern LETTER_R :: Word8 Source #

pattern LETTER_S :: Word8 Source #

pattern LETTER_T :: Word8 Source #

pattern LETTER_U :: Word8 Source #

pattern LETTER_V :: Word8 Source #

pattern LETTER_W :: Word8 Source #

pattern LETTER_X :: Word8 Source #

pattern LETTER_Y :: Word8 Source #

pattern LETTER_Z :: Word8 Source #

pattern BACKSLASH :: Word8 Source #

\

pattern CIRCUM :: Word8 Source #

^

pattern UNDERSCORE :: Word8 Source #

_

pattern GRAVE :: Word8 Source #

`

pattern LETTER_a :: Word8 Source #

pattern LETTER_b :: Word8 Source #

pattern LETTER_c :: Word8 Source #

pattern LETTER_d :: Word8 Source #

pattern LETTER_e :: Word8 Source #

pattern LETTER_f :: Word8 Source #

pattern LETTER_g :: Word8 Source #

pattern LETTER_h :: Word8 Source #

pattern LETTER_i :: Word8 Source #

pattern LETTER_j :: Word8 Source #

pattern LETTER_k :: Word8 Source #

pattern LETTER_l :: Word8 Source #

pattern LETTER_m :: Word8 Source #

pattern LETTER_n :: Word8 Source #

pattern LETTER_o :: Word8 Source #

pattern LETTER_p :: Word8 Source #

pattern LETTER_q :: Word8 Source #

pattern LETTER_r :: Word8 Source #

pattern LETTER_s :: Word8 Source #

pattern LETTER_t :: Word8 Source #

pattern LETTER_u :: Word8 Source #

pattern LETTER_v :: Word8 Source #

pattern LETTER_w :: Word8 Source #

pattern LETTER_x :: Word8 Source #

pattern LETTER_y :: Word8 Source #

pattern LETTER_z :: Word8 Source #

pattern BRACE_LEFT :: Word8 Source #

{

pattern CURLY_LEFT :: Word8 Source #

{

pattern BAR :: Word8 Source #

|

pattern OR :: Word8 Source #

|

pattern TILDE :: Word8 Source #

~

pattern DEL :: Word8 Source #

\DEL