Java String Unquote unquote(String argument)

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

Description

unquote

License

Open Source License

Declaration

public static String unquote(String argument) 

Method Source Code

//package com.java2s;

public class Main {
    public static String unquote(String argument) {
        if (!argument.startsWith("\"") || !argument.endsWith("\"")) {
            return argument;
        }//from   w w w  .  java  2s  .  c  o  m
        return argument.substring(1, argument.length() - 1);
    }
}

Related

  1. unQuote(final String quoted)
  2. unquote(final String s)
  3. unquote(final String str)
  4. unquote(String _path)
  5. unquote(String argument)
  6. unquote(String aString)
  7. unquote(String entityName)
  8. unquote(String in)
  9. unquote(String input, char quoteChar)