Copyright | Copyright (C) 2008 Uwe Schmidt |
---|---|
License | MIT |
Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Helper functions for RelaxNG validation
- isRelaxAnyURI :: String -> Bool
- compareURI :: String -> String -> Bool
- normalizeURI :: String -> String
- isNumber :: String -> Bool
- isNmtoken :: String -> Bool
- isName :: String -> Bool
- formatStringList :: (String -> String) -> String -> [String] -> String
- formatStringListPatt :: [String] -> String
- formatStringListId :: [String] -> String
- formatStringListQuot :: [String] -> String
- formatStringListPairs :: [(String, String)] -> String
- formatStringListArr :: [String] -> String
Documentation
isRelaxAnyURI :: String -> Bool Source
Tests whether a URI matches the Relax NG anyURI symbol
compareURI :: String -> String -> Bool Source
Tests whether two URIs are equal after normalizeURI
is performed
normalizeURI :: String -> String Source
Converts all letters to the corresponding lower-case letter and removes a trailing "/"
formatStringListPatt :: [String] -> String Source
Formats a list of strings into a single string. The first parameter formats the elements, the 2. is inserted between two elements.
example:
formatStringList show ", " ["foo", "bar", "baz"] -> "foo", "bar", "baz"
formatStringListId :: [String] -> String Source
formatStringListQuot :: [String] -> String Source
formatStringListPairs :: [(String, String)] -> String Source
formatStringListArr :: [String] -> String Source