common/src/main/java/HTTPClient/Util.java
/**
     * Replace quoted characters by their unquoted version. Quoted characters
     * are characters preceded by a slash. E.g. "\c" would be replaced by "c".
     * This is used in parsing http headers where quoted-characters are
     * allowed in quoted-strings and often used to quote the quote character
     * &lt;"&gt;.
     *
     * @param str the string do dequote
     * @return the string do with all quoted characters replaced by their
     *         true value.
     */
Replace quoted characters by their unquoted version. Quoted characters
are characters preceded by a slash.

@param str the string do dequote
@return the string do with all quoted characters replaced by their
true value.
Replace quoted characters by their unquoted version . Quoted characters are characters preceded by a slash . @param str the string do dequote @return the string do with all quoted characters replaced by their true value .
public final static String dequoteString(String str)
    {
	if (str.indexOf('\\') == -1)  return str;
	char[] buf = str.toCharArray();
	int pos = 0, num_deq = 0;
	while (pos < buf.length)
	{
	    if (buf[pos] == '\\'  &&  pos+1 < buf.length)
	    {
		System.arraycopy(buf, pos+1, buf, pos, buf.length-pos-1);
		num_deq++;
	    }
	    pos++;
	}
	return new String(buf, 0, buf.length-num_deq);
    }
public final static String dequoteString ( String str ) { if ( str . indexOf ( '\\' ) == - 1 ) return str ; char [ ] buf = str . toCharArray ( ) ; int pos = 0 , num_deq = 0 ; while ( pos < buf . length ) { if ( buf [ pos ] == '\\' && pos + 1 < buf . length ) { System . arraycopy ( buf , pos + 1 , buf , pos , buf . length - pos - 1 ) ; num_deq ++ ; } pos ++ ; } return new String ( buf , 0 , buf . length - num_deq ) ; }
Replace quoted characters by their unquoted version.
Replace quoted characters by their unquoted version .