Java String Unquote unquote(String quotedString)

Here you can find the source of unquote(String quotedString)

Description

unquote

License

Open Source License

Declaration

public static String unquote(String quotedString) 

Method Source Code

//package com.java2s;
//License from project: GNU General Public License 

public class Main {
    public static String unquote(String quotedString) {
        if (quotedString == null)
            return quotedString;
        if (quotedString.startsWith("\"") && quotedString.endsWith("\"")) {
            return quotedString.substring(1, quotedString.length() - 1);
        }//from   w  w  w. j a  v a 2 s .  co m
        return quotedString;
    }
}

Related

  1. unquote(String name)
  2. unquote(String name)
  3. unquote(String quoted)
  4. unquote(String quoted)
  5. unquote(String quoted)
  6. unquote(String s)
  7. unquote(String s)
  8. unquote(String s)
  9. unquote(String s)