You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ve...@jakarta.apache.org on 2004/11/04 14:46:20 UTC
[Jakarta-Velocity Wiki] Updated: EscapeTool
Date: 2004-11-04T05:46:20
Editor: ShinobuKawai <sh...@ieee.org>
Wiki: Jakarta-Velocity Wiki
Page: EscapeTool
URL: http://wiki.apache.org/jakarta-velocity/EscapeTool
changed Sharp -> Hash, added SingleQuote
Change Log:
------------------------------------------------------------------------------
@@ -44,8 +44,8 @@
* $esc.dollar -> $
* $esc.d -> $
*
- * $esc.sharp -> #
- * $esc.s -> #
+ * $esc.hash -> #
+ * $esc.h -> #
*
* $esc.backslash -> \
* $esc.b -> \
@@ -53,6 +53,9 @@
* $esc.quote -> "
* $esc.q -> "
*
+ * $esc.singleQuote -> '
+ * $esc.s -> '
+ *
* $esc.exclamation -> !
* $esc.e -> !
*
@@ -179,23 +182,23 @@
}
/**
- * Renders a sharp (#).
- * @return a sharp (#).
- * @see #getS()
+ * Renders a hash (#).
+ * @return a hash (#).
+ * @see #getH()
*/
- public String getSharp()
+ public String getHash()
{
return "#";
}
/**
- * Renders a sharp (#).
- * @return a sharp (#).
- * @see #getSharp()
+ * Renders a hash (#).
+ * @return a hash (#).
+ * @see #getHash()
*/
- public String getS()
+ public String getH()
{
- return this.getSharp();
+ return this.getHash();
}
/**
@@ -236,6 +239,26 @@
public String getQ()
{
return this.getQuote();
+ }
+
+ /**
+ * Renders a single quotation mark (').
+ * @return a single quotation mark (').
+ * @see #getS()
+ */
+ public String getSingleQuote()
+ {
+ return "'";
+ }
+
+ /**
+ * Renders a single quotation mark (').
+ * @return a single quotation mark (').
+ * @see #getSingleQuote()
+ */
+ public String getS()
+ {
+ return this.getSingleQuote();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org