From cefe90d4013220066c1f738f7e7c55bd19e26dab Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 6 Sep 2012 09:35:00 +0200 Subject: add links to RFCs in HTML documentation --- doc/doxyfilter.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/doxyfilter.cpp') 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, "\\1"); + // add links for XEPs QRegExp regexp("(XEP-([0-9]{4})(: [^\\s.]+( [A-Z][^\\s.]*)*)?)"); code.replace(regexp, "\\1"); -- cgit v1.2.3