summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-02-19 18:51:10 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-02-19 18:51:10 (GMT)
commitf7f03d9491454ddc9b855b8637d482df6bd622c2 (patch)
treec87efff649bf31ee31966a867e71ba7f159fca43 /src/rtfdocvisitor.cpp
parent1c80138e2c47e9c608b56c32b5677fa6a46b4d6f (diff)
downloadDoxygen-f7f03d9491454ddc9b855b8637d482df6bd622c2.zip
Doxygen-f7f03d9491454ddc9b855b8637d482df6bd622c2.tar.gz
Doxygen-f7f03d9491454ddc9b855b8637d482df6bd622c2.tar.bz2
Release-1.5.1-20070219
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 0d99613..fb0b1e1 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -3,7 +3,7 @@
*
*
*
- * Copyright (C) 1997-2006 by Dimitri van Heesch.
+ * Copyright (C) 1997-2007 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -29,8 +29,8 @@
#include "parserintf.h"
-#define DBG_RTF(x) m_t << x
-//#define DBG_RTF(x) do {} while(0)
+//#define DBG_RTF(x) m_t << x
+#define DBG_RTF(x) do {} while(0)
RTFDocVisitor::RTFDocVisitor(QTextStream &t,CodeOutputInterface &ci,
const char *langExt)
@@ -1294,12 +1294,12 @@ void RTFDocVisitor::visitPost(DocText *)
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocText)}\n");
}
-static char* getMultiByte(int c)
-{
- static char s[10];
- sprintf(s,"\\'%X",c);
- return s;
-}
+//static char* getMultiByte(int c)
+//{
+// static char s[10];
+// sprintf(s,"\\'%X",c);
+// return s;
+//}
void RTFDocVisitor::filter(const char *str,bool verbatim)
{
@@ -1310,21 +1310,21 @@ void RTFDocVisitor::filter(const char *str,bool verbatim)
unsigned char pc='\0';
while (*p)
{
- static bool MultiByte = FALSE;
+ //static bool MultiByte = FALSE;
c=*p++;
- if ( MultiByte )
- {
- m_t << getMultiByte( c );
- MultiByte = FALSE;
- continue;
- }
- if ( c >= 0x80 )
- {
- MultiByte = TRUE;
- m_t << getMultiByte( c );
- continue;
- }
+ //if ( MultiByte )
+ //{
+ // m_t << getMultiByte( c );
+ // MultiByte = FALSE;
+ // continue;
+ //}
+ //if ( c >= 0x80 )
+ //{
+ // MultiByte = TRUE;
+ // m_t << getMultiByte( c );
+ // continue;
+ //}
switch (c)
{