aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Shared.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-22 22:52:39 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-22 22:52:39 +0000
commit1121e8738b3d2a60c5762be03a2f6b33adae77ab (patch)
treeeeb7fd188c585f099a65a5d55f675cae5cbb3b89 /src/Text/Pandoc/Shared.hs
parent8f0750574ac1702d27bf9a98ccce3962ad0b587c (diff)
downloadpandoc-1121e8738b3d2a60c5762be03a2f6b33adae77ab.tar.gz
Removed 'gsub' entirely and replaced its uses with 'substitute'.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@501 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc/Shared.hs')
-rw-r--r--src/Text/Pandoc/Shared.hs8
1 files changed, 0 insertions, 8 deletions
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