diff options
| author | peb <unknown> | 2005-02-18 18:21:06 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-02-18 18:21:06 +0000 |
| commit | 9568d7a844ba6a1872a8e8f6ef002860057e62ab (patch) | |
| tree | 9e25c6ed62e48101a2782d5fb8dcba68462dc613 /src/GF/Text/Text.hs | |
| parent | 1c4f025320900897ae3acdab6982f7d595b98dd1 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Text/Text.hs')
| -rw-r--r-- | src/GF/Text/Text.hs | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/GF/Text/Text.hs b/src/GF/Text/Text.hs index fe1165748..3aee3b378 100644 --- a/src/GF/Text/Text.hs +++ b/src/GF/Text/Text.hs @@ -1,28 +1,37 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Text +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:16 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.6 $ -- --- (Description of the module) +-- elementary text postprocessing. AR 21\/11\/2001. +-- +-- This is very primitive indeed. The functions should work on +-- token lists and not on strings. AR 5\/12\/2002 +-- +-- XML hack 14\/8\/2004; not in use yet ----------------------------------------------------------------------------- -module Text where +module Text (untokWithXML, + exceptXML, + formatAsTextLit, + formatAsCodeLit, + formatAsText, + formatAsCode, + performBinds, + unStringLit, + concatRemSpace + ) where import Operations import Char --- elementary text postprocessing. AR 21/11/2001 --- This is very primitive indeed. The functions should work on --- token lists and not on strings. AR 5/12/2002 --- XML hack 14/8/2004; not in use yet - --- does not apply untokenizer within XML tags --- heuristic "< " +-- | does not apply untokenizer within XML tags --- heuristic "< " -- this function is applied from top level... untokWithXML :: (String -> String) -> String -> String untokWithXML unt s = case s of @@ -35,7 +44,7 @@ untokWithXML unt s = case s of where unto = untokWithXML unt --- ... whereas this one is embedded on a branch +-- | ... whereas this one is embedded on a branch exceptXML :: (String -> String) -> String -> String exceptXML unt s = '<':beg ++ ">" ++ unt (drop 1 rest) where (beg,rest) = span (/='>') s @@ -103,4 +112,4 @@ concatRemSpace s = case s of c : cs | isSpace c -> concatRemSpace cs c :cs -> c : concatRemSpace cs _ -> s --}
\ No newline at end of file +-} |
