diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-06 09:35:00 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-06 09:35:00 +0200 |
| commit | cefe90d4013220066c1f738f7e7c55bd19e26dab (patch) | |
| tree | c57fdda5c883c5ce31916bd1bcd5fdc259b3d47d /doc/doxyfilter.cpp | |
| parent | a8b27e4315cc45a4d8a74ae6f041810fd2e9ec05 (diff) | |
| download | qxmpp-cefe90d4013220066c1f738f7e7c55bd19e26dab.tar.gz | |
add links to RFCs in HTML documentation
Diffstat (limited to 'doc/doxyfilter.cpp')
| -rw-r--r-- | doc/doxyfilter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/doxyfilter.cpp b/doc/doxyfilter.cpp index 0d2db351..6a93d225 100644 --- a/doc/doxyfilter.cpp +++ b/doc/doxyfilter.cpp @@ -107,6 +107,10 @@ int main(int argc, char *argv[]) QString code = QString::fromUtf8(source.readAll()); source.close(); + // add links for RFCs + QRegExp rfcRegexp("(RFC ([0-9]{4})(: [^\\s.]+( [A-Z][^\\s.]*)*)?)"); + code.replace(rfcRegexp, "<a href=\"http://www.rfc-editor.org/rfc/rfc\\2.txt\">\\1</a>"); + // add links for XEPs QRegExp regexp("(XEP-([0-9]{4})(: [^\\s.]+( [A-Z][^\\s.]*)*)?)"); code.replace(regexp, "<a href=\"http://xmpp.org/extensions/xep-\\2.html\">\\1</a>"); |
