Java String Unquote unquote(final String s)

Here you can find the source of unquote(final String s)

Description

unquote

License

Common Public License

Declaration

public static String unquote(final String s) 

Method Source Code

//package com.java2s;
/*//from  w w w .  jav a 2 s  . c  o  m
 * @author Fabio Zadrozny
 * Created: June 2005
 * License: Common Public License v1.0
 */

public class Main {
    public static String unquote(final String s) {
        final int length = s.length();
        if (length > 2 && s.charAt(0) == '\''
                && s.charAt(length - 1) == '\'') {
            return s.substring(1, length - 1);
        }
        return s;
    }
}

Related

  1. unquote(char[] ca, int pos, StringBuffer out)
  2. unquote(final CharSequence quotePhrase)
  3. unquote(final String aInput)
  4. unquote(final String in)
  5. unQuote(final String quoted)
  6. unquote(final String str)
  7. unquote(String _path)
  8. unquote(String argument)
  9. unquote(String argument)