Java String Unquote unquote(String val)

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

Description

unquote

Declaration

private static String unquote(String val) 

Method Source Code

//package com.java2s;

public class Main {
    private static String unquote(String val) {
        if ((val.startsWith("\"") && val.endsWith("\""))
                || (val.startsWith("'") && val.endsWith("'"))) {
            return val.substring(1, val.length() - 1);
        }// w  w w.j a  v  a2s. c  o m
        return val;
    }
}

Related

  1. unquote(String text)
  2. unquote(String text)
  3. unquote(String text)
  4. unquote(String toUnquote, char quoteChar)
  5. unquote(String val)
  6. unquote(String value)
  7. unquote(String value)
  8. unquote(String value)
  9. UnQuote(String value)