xml-basic-0.1.3.1: Basics for XML/HTML representation and processing

Safe HaskellSafe
LanguageHaskell98

Text.HTML.Basic.Character

Synopsis

Documentation

data T Source #

Instances
Eq T Source # 
Instance details

Defined in Text.XML.Basic.Character

Methods

(==) :: T -> T -> Bool #

(/=) :: T -> T -> Bool #

Show T Source # 
Instance details

Defined in Text.XML.Basic.Character

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

C T Source # 
Instance details

Defined in Text.XML.Basic.Character

Methods

run :: T -> ShowS Source #

refC :: Int -> T 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 ', ", &, <, >.

switchUnicodeRuns :: (String -> a) -> (Int -> a) -> (String -> a) -> [T] -> [a] Source #