Here you can find the source of unquote(String value)
Parameter | Description |
---|---|
value | a parameter |
public static String unquote(String value)
//package com.java2s; //License from project: Open Source License public class Main { /**// w ww. ja v a 2 s . c o m * Given a string, which is quoted with double quotes, returns the contents, without the double quotes. * * @param value * @return The contents of the quoted string. */ public static String unquote(String value) { if (value.startsWith("\'") && (value.endsWith("\'"))) { return value.substring(1, value.length() - 1).replaceAll("\\\'", "'"); // Replace all \' slash quote with " quote } return value; } }