summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-10-20 18:23:06 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-10-20 18:23:06 (GMT)
commit7c34dd2b1594925d0a012e9ba290bf9c80574db5 (patch)
tree63a7ba72ad4f8318f818aebfef29beee5811c241 /src/latexgen.cpp
parent2c6d31c8bf31028ba2f822c31f4812c2cecab306 (diff)
downloadDoxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.zip
Doxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.tar.gz
Doxygen-7c34dd2b1594925d0a012e9ba290bf9c80574db5.tar.bz2
Release-1.2.18-20021020
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp92
1 files changed, 18 insertions, 74 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index ec74944..09ecae4 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -113,24 +113,24 @@ LatexGenerator::~LatexGenerator()
// col=g.col;
//}
-void LatexGenerator::append(const OutputGenerator *g)
-{
- t << g->getContents();
- col+=((LatexGenerator *)g)->col;
- insideTabbing=insideTabbing || ((LatexGenerator *)g)->insideTabbing;
- firstDescItem = ((LatexGenerator *)g)->firstDescItem;
- insidePre = insidePre || ((LatexGenerator *)g)->insidePre;
- //printf("LatexGenerator::append(%s) insideTabbing=%s\n", g->getContents().data(),
- // insideTabbing ? "TRUE" : "FALSE" );
-}
+//void LatexGenerator::append(const OutputGenerator *g)
+//{
+// t << g->getContents();
+// col+=((LatexGenerator *)g)->col;
+// insideTabbing=insideTabbing || ((LatexGenerator *)g)->insideTabbing;
+// firstDescItem = ((LatexGenerator *)g)->firstDescItem;
+// insidePre = insidePre || ((LatexGenerator *)g)->insidePre;
+// //printf("LatexGenerator::append(%s) insideTabbing=%s\n", g->getContents().data(),
+// // insideTabbing ? "TRUE" : "FALSE" );
+//}
-OutputGenerator *LatexGenerator::copy()
-{
- LatexGenerator *result = new LatexGenerator;
- result->insideTabbing=insideTabbing;
- result->insidePre=insidePre;
- return result;
-}
+//OutputGenerator *LatexGenerator::copy()
+//{
+// LatexGenerator *result = new LatexGenerator;
+// result->insideTabbing=insideTabbing;
+// result->insidePre=insidePre;
+// return result;
+//}
void LatexGenerator::init()
{
@@ -1295,62 +1295,6 @@ void LatexGenerator::endSection(const char *lab,SectionInfo::SectionType)
//void LatexGenerator::docifyStatic(QTextStream &t,const char *str)
void LatexGenerator::docify(const char *str)
{
-#if 0
- //static bool isCzech = theTranslator->idLanguage()=="czech";
- static bool isJapanese = theTranslator->idLanguage()=="japanese";
- //static bool isKorean = theTranslator->idLanguage()=="korean";
- //static bool isRussian = theTranslator->idLanguage()=="russian";
- //static bool isUkrainian = theTranslator->idLanguage()=="ukrainian";
- //static bool isChinese = theTranslator->idLanguage()=="chinese" ||
- // theTranslator->idLanguage()=="chinese-traditional";
- //static bool isLatin2 = theTranslator->idLanguageCharset()=="iso-8859-2";
- //static bool isGreek = theTranslator->idLanguage()=="greek";
- if (str)
- {
- const unsigned char *p=(const unsigned char *)str;
- unsigned char c;
- unsigned char pc='\0';
- bool multiByte = FALSE;
- while (*p)
- {
- c=*p++;
-
- if( isJapanese)
- {
- if (multiByte)
- {
- t << (char)c;
- multiByte = FALSE;
- pc = c;
- continue;
- }
- if (c>=0x80)
- {
- multiByte = TRUE;
- t << (char)c;
- pc = c;
- continue;
- }
- }
-
- if (insidePre)
- {
- switch(c)
- {
- case '\\': t << "\\(\\backslash\\)"; break;
- case '{': t << "\\{"; break;
- case '}': t << "\\}"; break;
- default: t << (char)c; break;
- }
- }
- else
- {
- filterLatexChar(t,c,insideTabbing);
- }
- pc = c;
- }
- }
-#endif
filterLatexString(t,str,insideTabbing,insidePre);
}
@@ -1377,7 +1321,7 @@ void LatexGenerator::codify(const char *str)
MultiByte = FALSE;
continue;
}
- if ( c<0 ) // char in range [0x80..0xff]
+ if ( (uchar)c>=0x80 || (uchar)c<=0xff) // char in range [0x80..0xff]
{
t << (char)c;
MultiByte = TRUE;