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

Safe HaskellSafe
LanguageHaskell98

Text.HTML.Basic.Character

Synopsis

Documentation

data T #

Instances

Eq T # 

Methods

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

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

Show T # 

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

C T # 

Methods

run :: T -> ShowS #

isRef :: T -> Bool #

unicode :: Char -> T #

refC :: Int -> T #

refE :: String -> T #

asciiFromUnicode :: Char -> T #

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 #

Generate XML character from Unicode character with minimal use of references. The only references used are the XML entity references ', ", &, <, >.

reduceRef :: T -> T #

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

isLower :: T -> Bool #

isUpper :: T -> Bool #

toLower :: T -> T #

toUpper :: T -> T #