| <html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath2.processor.internal.utils</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath2.processor.internal.utils</strong></font><br> |
| Class LiteralUtils</h2><br><hr><pre>public class <strong>LiteralUtils</strong> |
| extends java.lang.Object</pre>String literal utilities<hr><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_LiteralUtils">LiteralUtils</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="" align="left"><code><a href="#method_unquote">unquote</a>(java.lang.String quotedString)</code><br> |
| |
| Unquotes a quoted string, changing double quotes into single quotes as well. |
| Examples (string delimited by > and <): |
| >"A"< becomes >A< |
| >'B'< becomes >B< |
| >"A""B"< becomes >A"B< |
| >"A""B"< becomes >A"B< |
| >'A''''B'< becomes >A''B< |
| >"A''''B"< becomes >A''''B<</td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2> |
| Constructor Detail |
| </h2></td></tr></table><h2><a name="con_LiteralUtils">LiteralUtils</a></h2><p><code>public <strong>LiteralUtils</strong>()</code></p><p></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2> |
| Methods Detail |
| </h2></td></tr></table><h2><a name="method_unquote">unquote</a></h2><p><code>public java.lang.String <strong>unquote</strong>(java.lang.String quotedString)</code></p><p>Unquotes a quoted string, changing double quotes into single quotes as well. |
| Examples (string delimited by > and <): |
| >"A"< becomes >A< |
| >'B'< becomes >B< |
| >"A""B"< becomes >A"B< |
| >"A""B"< becomes >A"B< |
| >'A''''B'< becomes >A''B< |
| >"A''''B"< becomes >A''''B<</p><h3>Parameters</h3><p><code>quotedString</code> - A quoted string possibly containing escaped quotes</p><h3>Returns</h3><p><code>java.lang.String</code> - unquoted and unescaped string</p><hr></body></html> |