Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- type T = [Atom]
- type EmbeddedExceptions = [Exceptional String Char]
- type Atom = T
- type Encoding = String
- type Encoded = String
- fromString :: String -> T
- diffFromString :: String -> T -> T
- fromUnicodeString :: String -> T
- toUnicodeStringOrFormat :: T -> String
- toUnicodeStringEmbedMessage :: T -> String
- toUnicodeString :: T -> String
- toUnicodeStringEmbedException :: T -> EmbeddedExceptions
- isoLatin1ToUnicodeString :: T -> String
- utf8ToUnicodeString :: T -> String
- readHex :: (Eq a, Num a) => String -> a
- parse :: String -> T
- parseAux :: (Char -> Bool) -> (String -> T) -> String -> String -> T
- reduceRefs :: T -> T
- replaceUTF8ByUnicode :: T -> T
- mapUnicodeRuns :: (String -> String) -> T -> T
- uStringWithErrorsMergePlainChars :: EmbeddedExceptions -> [Exceptional String String]
- evalDecodeAdaptive :: State (Encoded -> String) a -> a
- liftFromUnicode :: (String -> String) -> T -> T
- liftFromUnicodeA :: Applicative m => (String -> m String) -> T -> m T
Documentation
type EmbeddedExceptions = [Exceptional String Char] Source #
fromString :: String -> T Source #
Literal translation from pure strings. This can only work, if the string does not contain special characters.
fromUnicodeString :: String -> T Source #
default routine
toUnicodeStringOrFormat :: T -> String Source #
toUnicodeString :: T -> String Source #
Errors in on resolution of references yield undefined elements.
isoLatin1ToUnicodeString :: T -> String Source #
Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!
Interpret the XML string as mixture of ISO-Latin-1 characters and XML entities and convert that to a Unicode string.
utf8ToUnicodeString :: T -> String Source #
Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!
Interpret the XML string as mixture of UTF-8 characters and XML entities and convert that to a Unicode string.
Caution: There is a memory leak for the case that entity references are huge.
reduceRefs :: T -> T Source #
replaceUTF8ByUnicode :: T -> T Source #
Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!
Consider the XmlString as a mixture of XML entities and UTF-8 characters. Replace UTF-8 characters by Unicode representations.
uStringWithErrorsMergePlainChars :: EmbeddedExceptions -> [Exceptional String String] Source #
Deprecated: XmlChar.Unicode constructors must contain unicode characters and not encoded ones. Decode characters before parsing!
liftFromUnicodeA :: Applicative m => (String -> m String) -> T -> m T Source #