Here you can find the source of unquote(String s)
Parameter | Description |
---|---|
s | the string to be unquoted |
public static String unquote(String s)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w.j ava 2s . c om * Removes enclosinf apostrophes from the given string * @param s the string to be unquoted * @return the unquoted string */ public static String unquote(String s) { if (s.contains("'")) { return s.substring(s.indexOf("'") + 1, s.lastIndexOf("'")); } else { return s; } } }