< prev index next >
src/share/vm/trace/xsl_util.xsl
Print this page
rev 8910 : full patch for jfr
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.
@@ -72,7 +72,28 @@
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+<xsl:template name="maybecomma">
+ <xsl:if test="position()!=last()">
+ <xsl:text>,</xsl:text>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="static_cast">
+ <xsl:param name="type"/>
+ <xsl:param name="content"/>
+ <xsl:text>static_cast<</xsl:text>
+ <xsl:value-of select="$type"/>
+ <xsl:text>>(</xsl:text>
+ <xsl:value-of select="$content"/>
+ <xsl:text>)</xsl:text>
+</xsl:template>
+
+<xsl:template name="mstr">
+ <xsl:param name="string"/>
+ <xsl:value-of select="concat('{ (u2)',string-length($string),', ')"/>
+ <xsl:value-of select="concat($quote,$string,$quote,' }')"/>
+</xsl:template>
</xsl:stylesheet>
< prev index next >