diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2007-02-19 18:51:10 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2007-02-19 18:51:10 (GMT) |
commit | eb591296685b8268427173e0a24f74abd987170d (patch) | |
tree | c87efff649bf31ee31966a867e71ba7f159fca43 /src/rtfdocvisitor.cpp | |
parent | 84dc695cd534be6a58ae71ec7f2bcf3b6b5e9e64 (diff) | |
download | Doxygen-eb591296685b8268427173e0a24f74abd987170d.zip Doxygen-eb591296685b8268427173e0a24f74abd987170d.tar.gz Doxygen-eb591296685b8268427173e0a24f74abd987170d.tar.bz2 |
Release-1.5.1-20070219
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r-- | src/rtfdocvisitor.cpp | 44 |
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) { |