Java String Quote quote(String name)

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

Description

quote

License

Open Source License

Declaration

public static String quote(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String quote(String name) {
        if (name.toLowerCase().indexOf("\\e") > 0) {
            throw new RuntimeException("Quote method will fail");
        }/*from  www  .  j a v a2s . co  m*/
        return "\\Q" + name + "\\E";
    }
}

Related

  1. quote(String inp)
  2. quote(String input)
  3. quote(String input)
  4. quote(String literal)
  5. quote(String message, String quotationMark)
  6. quote(String name)
  7. quote(String name)
  8. quote(String name)
  9. quote(String p_sql)