From 1121e8738b3d2a60c5762be03a2f6b33adae77ab Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Mon, 22 Jan 2007 22:52:39 +0000 Subject: Removed 'gsub' entirely and replaced its uses with 'substitute'. git-svn-id: https://pandoc.googlecode.com/svn/trunk@501 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Shared.hs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/Text/Pandoc/Shared.hs') diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index adaffb9da..1df2b4d38 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -33,7 +33,6 @@ module Text.Pandoc.Shared ( splitByIndices, substitute, -- * Text processing - gsub, joinWithSep, tabsToSpaces, backslashEscape, @@ -220,13 +219,6 @@ tabsInLine num tabstop (c:cs) = else nextnumraw in replacement ++ (tabsInLine nextnum tabstop cs) --- | Substitute string for every occurrence of regular expression. -gsub :: String -- ^ Regular expression (as string) to substitute for - -> String -- ^ String to substitute for the regex - -> String -- ^ String to be substituted in - -> String -gsub regex replacement str = subRegex (mkRegex regex) str replacement - -- | Escape designated characters with backslash. backslashEscape :: [Char] -- ^ list of special characters to escape -> String -- ^ string input -- cgit v1.2.3