Package org.eclipse.wst.xml.xpath2.processor.internal.utils
public class LiteralUtils extends java.lang.ObjectString literal utilities
Constructor Summary |
LiteralUtils() |
Method Summary | |
public static java.lang.String | unquote(java.lang.String quotedString) 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< |
Constructor Detail |
public LiteralUtils()
Methods Detail |
public java.lang.String unquote(java.lang.String quotedString)
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<
quotedString
- A quoted string possibly containing escaped quotes
java.lang.String
- unquoted and unescaped string