|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86276 - trunk/tools/boostbook/xsl/doxygen
From: dnljms_at_[hidden]
Date: 2013-10-12 16:11:16
Author: danieljames
Date: 2013-10-12 16:11:16 EDT (Sat, 12 Oct 2013)
New Revision: 86276
URL: http://svn.boost.org/trac/boost/changeset/86276
Log:
Less verbose handling of qualifiers.
Text files modified:
trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl | 36 +++++++++++++-----------------------
1 files changed, 13 insertions(+), 23 deletions(-)
Modified: trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl Sat Oct 12 16:10:53 2013 (r86275)
+++ trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl 2013-10-12 16:11:16 EDT (Sat, 12 Oct 2013) (r86276)
@@ -1067,33 +1067,23 @@
' ')" />
<!-- CV Qualifiers -->
- <xsl:if test="@const='yes' or @volatile='yes' or contains($extra-qualifiers,' =delete ') or contains($extra-qualifiers,' =default ')">
+ <!-- Plus deleted and defaulted function markers as they're not properly
+ supported in boostbook -->
+ <!-- The 'substring' trick includes the string if the condition is true -->
+ <xsl:variable name="cv-qualifiers" select="normalize-space(concat(
+ substring('const ', 1, 999 * (@const=yes)),
+ substring('volatile ', 1, 999 * (@volatile=yes)),
+ substring('= delete ', 1, 999 * contains($extra-qualifiers, ' =delete ')),
+ substring('= default ', 1, 999 * contains($extra-qualifiers, ' =default ')),
+ ''))" />
+
+ <xsl:if test="$cv-qualifiers">
<xsl:attribute name="cv">
- <xsl:if test="@const='yes'">
- <xsl:text>const</xsl:text>
- </xsl:if>
- <xsl:if test="@volatile='yes'">
- <xsl:if test="@const='yes'">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:text>volatile</xsl:text>
- </xsl:if>
- <!-- Cheat and add deleted and defaulted function markers to the CV qualifiers -->
- <xsl:if test="contains($extra-qualifiers,' =delete ')">
- <xsl:if test="@const='yes' or @volatile='yes'">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:text>= delete</xsl:text>
- </xsl:if>
- <xsl:if test="contains($extra-qualifiers,' =default ')">
- <xsl:if test="@const='yes' or @volatile='yes'">
- <xsl:text> </xsl:text>
- </xsl:if>
- <xsl:text>= default</xsl:text>
- </xsl:if>
+ <xsl:value-of select="$cv-qualifiers" />
</xsl:attribute>
</xsl:if>
+ <!-- Specifiers -->
<xsl:if test="@explicit = 'yes'">
<xsl:attribute name="specifiers">explicit</xsl:attribute>
</xsl:if>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk