Package org.eclipse.wst.xml.xpath2.processor.internal.utils


org.eclipse.wst.xml.xpath2.processor.internal.utils
Class LiteralUtils



public class LiteralUtils
extends java.lang.Object
String literal utilities

Constructor Summary

LiteralUtils()

Method Summary

public static java.lang.Stringunquote(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

LiteralUtils

public LiteralUtils()


Methods Detail

unquote

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<

Parameters

quotedString - A quoted string possibly containing escaped quotes

Returns

java.lang.String - unquoted and unescaped string