Maintainer | [email protected] |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.Char.Control
Description
Unicode has a block named Control Pictures that visualizes control characters such as NULL, SUB, LF, DEL, etc. This module aims to make it more convenient to convert the control characters to their visualization and vice versa. Only ASCII control characters and the space are supported.
Synopsis
- controlPicture :: Char -> Maybe Char
- controlPicture' :: Char -> Char
- convertToControlPictures :: Text -> Text
- fromControlPicture :: Char -> Maybe Char
- fromControlPicture' :: Char -> Char
- isAsciiControl :: Char -> Bool
- isControl :: Char -> Bool
- hasControlVisualization :: Char -> Bool
- blankSymbol :: Char
- openBox :: Char
- newLine :: Char
- alternativeDelete :: Char
- alternativeSubstitute :: Char
Conversion to control pictures
Conversion from control picturesa
Check if a Char
is a control Char
Arguments
:: Char | The given |
-> Bool |
|
Check if the given Char
is a control character in the ASCII range.
Selects control characters, which are the non-printing characters of the Latin-1 subset of Unicode.
hasControlVisualization Source #
Arguments
:: Char | The given |
-> Bool |
|
Check if for the given Char
there is a visualization.
Alternative characters
Arguments
:: Char | Another character for space. |
Another symbol used to denote a space that works with ␢
. The controlPicture
function uses ␠
.
Arguments
:: Char | Another character for space. |
Another symbol used to denote a space that works with ␣
. The controlPicture
function uses ␠
.
Arguments
:: Char | Another character for a new line. |
Another symbol used to denote a new line that works with 
. The control picture function uses ␊
.
Arguments
:: Char | Another character for delete. |
Another symbol used to denote a delete character that works with ␥
. The control picture function uses ␡
.
alternativeSubstitute Source #
Arguments
:: Char | Another character for substitute. |
Another symbol used to denote a substitute character that works with ␦
. The control picture function uses ␚
.