diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 7371026..c931214 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -7026,6 +7026,25 @@ QCString latexEscapePDFString(const char *s) return result.data(); } +QCString latexFilterURL(const char *s) +{ + QGString result; + FTextStream t(&result); + const char *p=s; + char c; + while ((c=*p++)) + { + switch (c) + { + case '#': t << "\\#"; break; + default: + t << c; + break; + } + } + return result.data(); +} + QCString rtfFormatBmkStr(const char *name) { |