summaryrefslogtreecommitdiff
path: root/cpp/src/slice2confluence/ConfluenceOutput.h
diff options
context:
space:
mode:
authorShawn Hussey <shawn@zeroc.com>2011-09-01 13:09:35 -0230
committerShawn Hussey <shawn@zeroc.com>2011-09-01 13:09:35 -0230
commit29f0826432f80620f91832513beafedbd946a09c (patch)
tree8c2a1a3f305091a688760e47d1aaf1e78030b5fe /cpp/src/slice2confluence/ConfluenceOutput.h
parentFixed some markup in Slice file comments. (diff)
downloadice-29f0826432f80620f91832513beafedbd946a09c.tar.bz2
ice-29f0826432f80620f91832513beafedbd946a09c.tar.xz
ice-29f0826432f80620f91832513beafedbd946a09c.zip
Fixing markup escaping for slice2confluence.
Diffstat (limited to 'cpp/src/slice2confluence/ConfluenceOutput.h')
-rw-r--r--cpp/src/slice2confluence/ConfluenceOutput.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpp/src/slice2confluence/ConfluenceOutput.h b/cpp/src/slice2confluence/ConfluenceOutput.h
index 70f68b24132..294b0fb3054 100644
--- a/cpp/src/slice2confluence/ConfluenceOutput.h
+++ b/cpp/src/slice2confluence/ConfluenceOutput.h
@@ -1,4 +1,6 @@
#include <IceUtil/OutputUtil.h>
+#include <list>
+#include <utility>
#ifndef CONFLUENCE_OUTPUT
#define CONFLUENCE_OUTPUT
@@ -41,6 +43,20 @@ public:
std::string currentElement() const;
+ /**
+ * Wrap sections in these markers to prevent them from being confluence-escaped.
+ * The regular confluence-escaping process will remove these markers.
+ */
+ const static std::string TEMP_ESCAPER_START; // wrap sections
+ const static std::string TEMP_ESCAPER_END; // wrap sections
+
+ /**
+ * Gets the start and end positions of all TEMP_ESCAPED sections of the given string.
+ */
+ std::list<std::pair<unsigned int,unsigned int> > getMarkerLimits(const std::string&);
+
+ std::string removeMarkers(std::string);
+
private:
std::string escape(const ::std::string&) const;