summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-11-15 15:25:43 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-11-22 13:00:36 (GMT)
commit499ecaedf1ee1222535be27f77050ee633595685 (patch)
tree7447d83589769002d0793224a2b13b2a2569af42 /src/util.cpp
parentc5a7911741850777b699a63ae5b7702e379a5ada (diff)
downloadDoxygen-499ecaedf1ee1222535be27f77050ee633595685.zip
Doxygen-499ecaedf1ee1222535be27f77050ee633595685.tar.gz
Doxygen-499ecaedf1ee1222535be27f77050ee633595685.tar.bz2
Fixed problem with latex and PDF bookmarks
Diffstat (limited to 'src/util.cpp')
-rwxr-xr-xsrc/util.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 8472f3a..a032fe2 100755
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6713,6 +6713,29 @@ QCString latexEscapeIndexChars(const char *s,bool insideTabbing)
return result.data();
}
+QCString latexEscapePDFString(const char *s)
+{
+ QGString result;
+ FTextStream t(&result);
+ const char *p=s;
+ char c;
+ int i;
+ while ((c=*p++))
+ {
+ switch (c)
+ {
+ case '\\': t << "\\textbackslash{}"; break;
+ case '{': t << "\\{"; break;
+ case '}': t << "\\}"; break;
+ default:
+ t << c;
+ break;
+ }
+ }
+ return result.data();
+}
+
+
QCString rtfFormatBmkStr(const char *name)
{
static QCString g_nextTag( "AAAAAAAAAA" );