Java String Unquote unquote(String name)

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

Description

Removes dollar ($) prefix from the given name if it exists

License

Apache License

Declaration

public static String unquote(String name) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /** Removes dollar ($) prefix from the given name if it exists */
    public static String unquote(String name) {
        if (!name.isEmpty() && name.charAt(0) == '$') {
            return name.substring(1);
        }/*from w w w.  j  a v  a2s  . co  m*/
        return name;
    }
}

Related

  1. unquote(String in)
  2. unquote(String input, char quoteChar)
  3. unquote(String literal)
  4. unquote(String maybeQuoted)
  5. unquote(String message)
  6. unquote(String name)
  7. unquote(String quoted)
  8. unquote(String quoted)
  9. unquote(String quoted)