Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- data T
- toUnicode :: T -> Exceptional String Char
- toUnicodeOrFormat :: T -> ShowS
- fromUnicode :: Char -> T
- fromCharRef :: Int -> T
- fromEntityRef :: String -> T
- maybeUnicode :: T -> Maybe Char
- maybeCharRef :: T -> Maybe Int
- maybeEntityRef :: T -> Maybe String
- isUnicode :: T -> Bool
- isCharRef :: T -> Bool
- isEntityRef :: T -> Bool
- isRef :: T -> Bool
- unicode :: Char -> T
- refC :: Int -> T
- refE :: String -> T
- asciiFromUnicode :: Char -> T
- asciiFromUnicodeInternetExploder :: Char -> T
- minimalRefFromUnicode :: Char -> T
- reduceRef :: T -> T
- validCharRef :: Int -> Bool
- switchUnicodeRuns :: (String -> a) -> (Int -> a) -> (String -> a) -> [T] -> [a]
- isLower :: T -> Bool
- isUpper :: T -> Bool
- toLower :: T -> T
- toUpper :: T -> T
Documentation
toUnicodeOrFormat :: T -> ShowS Source #
fromUnicode :: Char -> T Source #
fromCharRef :: Int -> T Source #
fromEntityRef :: String -> T Source #
isEntityRef :: T -> Bool Source #
asciiFromUnicode :: Char -> T Source #
Convert unicode character to XML Char. If there is a named reference, use this. If it is ASCII, represent it as Char. Otherwise use a numeric reference.
minimalRefFromUnicode :: Char -> T Source #
Generate XML character from Unicode character
with minimal use of references.
The only references used are the XML entity references
'
, "
, &
, <
, >
.
validCharRef :: Int -> Bool Source #