Java String Dequote deQuote(String quotedString)

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

Description

de Quote

License

Open Source License

Declaration

private static String deQuote(String quotedString) 

Method Source Code

//package com.java2s;
/*/*w  ww  .  ja va 2  s.  c  o m*/
 * Copyright (c) 2012-2014 synapticloop.
 * All rights reserved.
 *
 * This source code and any derived binaries are covered by the terms and
 * conditions of the Licence agreement ("the Licence").  You may not use this
 * source code or any derived binaries except in compliance with the Licence.
 * A copy of the Licence is available in the file named LICENCE shipped with
 * this source code or binaries.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the Licence is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * Licence for the specific language governing permissions and limitations
 * under the Licence.
 */

public class Main {
    private static String deQuote(String quotedString) {
        if (quotedString.startsWith("'") && quotedString.endsWith("'")) {
            return (quotedString.substring(1, quotedString.length() - 1));
        }
        return (quotedString);
    }
}

Related

  1. dequote(final String in)
  2. deQuote(String in)
  3. dequote(String inputString)
  4. dequote(String s)
  5. deQuote(String s)
  6. dequote(String str)
  7. dequote(String str)