hxt-charproperties-9.4.0.0: Character properties and classes for XML and Unicode

Copyright | Copyright (C) 2010 - Uwe Schmidt
License | MIT
Maintainer | Uwe Schmidt (uwe@fh-wedel.de)
Stability | stable
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Data.Char.Properties.XMLCharProps

Description

XML character properties

Synopsis

- isXmlChar :: Char -> Bool
- isXmlCharCR :: Char -> Bool
- isXml1ByteChar :: Char -> Bool
- isXmlLatin1Char :: Char -> Bool
- isXmlSpaceChar :: Char -> Bool
- isXmlSpaceCharCR :: Char -> Bool
- isXml11SpaceChar :: Char -> Bool
- isXmlNameChar :: Char -> Bool
- isXmlNameStartChar :: Char -> Bool
- isXmlNCNameChar :: Char -> Bool
- isXmlNCNameStartChar :: Char -> Bool
- isXmlPubidChar :: Char -> Bool
- isXmlLetter :: Char -> Bool
- isXmlBaseChar :: Char -> Bool
- isXmlIdeographicChar :: Char -> Bool
- isXmlCombiningChar :: Char -> Bool
- isXmlDigit :: Char -> Bool
- isXmlExtender :: Char -> Bool
- isXmlControlOrPermanentlyUndefined :: Char -> Bool
- charPropXmlChar :: CharSet
- charPropXmlCharCR :: CharSet
- charPropXml1ByteChar :: CharSet
- charPropXmlLatin1Char :: CharSet
- charPropXmlSpaceChar :: CharSet
- charPropXmlSpaceCharCR :: CharSet
- charPropXml11SpaceChar :: CharSet
- charPropXmlNameChar :: CharSet
- charPropXmlNameStartChar :: CharSet
- charPropXmlNCNameChar :: CharSet
- charPropXmlNCNameStartChar :: CharSet
- charPropXmlPubidChar :: CharSet
- charPropXmlLetter :: CharSet
- charPropXmlBaseChar :: CharSet
- charPropXmlIdeographicChar :: CharSet
- charPropXmlCombiningChar :: CharSet
- charPropXmlDigit :: CharSet
- charPropXmlExtender :: CharSet
- charPropXmlControlOrPermanentlyUndefined :: CharSet

# Documentation

isXmlChar :: Char -> Bool Source #

checking for valid XML characters

isXmlCharCR :: Char -> Bool Source #

checking for valid XML characters, except CR

isXml1ByteChar :: Char -> Bool Source #

check for a legal 1 byte XML char

isXmlLatin1Char :: Char -> Bool Source #

test for a legal latin1 XML char

isXmlSpaceChar :: Char -> Bool Source #

checking for XML space character: \n, \r, \t and " "

isXmlSpaceCharCR :: Char -> Bool Source #

checking for XML space character: \n, \t and " "

isXml11SpaceChar :: Char -> Bool Source #

checking for XML1.1 space character: additional space 0x85 and 0x2028

see also : `isXmlSpaceChar`

isXmlNameChar :: Char -> Bool Source #

checking for XML name character

isXmlNameStartChar :: Char -> Bool Source #

checking for XML name start character

see also : `isXmlNameChar`

isXmlNCNameChar :: Char -> Bool Source #

checking for XML NCName character: no ":" allowed

see also : `isXmlNameChar`

isXmlNCNameStartChar :: Char -> Bool Source #

checking for XML NCName start character: no ":" allowed

see also : `isXmlNameChar`, `isXmlNCNameChar`

isXmlPubidChar :: Char -> Bool Source #

checking for XML public id character

isXmlLetter :: Char -> Bool Source #

checking for XML letter

isXmlBaseChar :: Char -> Bool Source #

checking for XML base charater

isXmlIdeographicChar :: Char -> Bool Source #

checking for XML ideographic charater

isXmlCombiningChar :: Char -> Bool Source #

checking for XML combining charater

isXmlDigit :: Char -> Bool Source #

checking for XML digit

isXmlExtender :: Char -> Bool Source #

checking for XML extender

isXmlControlOrPermanentlyUndefined :: Char -> Bool Source #

checking for XML control or permanently discouraged char

see Errata to XML1.0 (http://www.w3.org/XML/xml-V10-2e-errata) No 46

Document authors are encouraged to avoid "compatibility characters", as defined in section 6.8 of [Unicode] (see also D21 in section 3.6 of [Unicode3]). The characters defined in the following ranges are also discouraged. They are either control characters or permanently undefined Unicode characters:

charPropXmlChar :: CharSet Source #

charPropXmlCharCR :: CharSet Source #

charPropXml1ByteChar :: CharSet Source #

charPropXmlLatin1Char :: CharSet Source #

charPropXmlSpaceChar :: CharSet Source #

charPropXmlSpaceCharCR :: CharSet Source #

charPropXml11SpaceChar :: CharSet Source #

charPropXmlNameChar :: CharSet Source #

charPropXmlNameStartChar :: CharSet Source #

charPropXmlNCNameChar :: CharSet Source #

charPropXmlNCNameStartChar :: CharSet Source #

charPropXmlPubidChar :: CharSet Source #

charPropXmlLetter :: CharSet Source #

charPropXmlBaseChar :: CharSet Source #

charPropXmlIdeographicChar :: CharSet Source #

charPropXmlCombiningChar :: CharSet Source #

charPropXmlDigit :: CharSet Source #

charPropXmlExtender :: CharSet Source #

charPropXmlControlOrPermanentlyUndefined :: CharSet Source #