Java String Quote quoted(String text)

Here you can find the source of quoted(String text)

Description

quoted

License

Apache License

Declaration

public static String quoted(String text) 

Method Source Code

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

public class Main {
    public static String quoted(String text) {
        return "'" + text.replaceAll("'", "''") + "'";
    }//ww w.ja  v  a  2s .c  o  m
}

Related

  1. quoted(String i, char q)
  2. quoted(String path)
  3. quoteD(String s)
  4. quoted(String s)
  5. quoted(String str)
  6. quoted(String val, boolean wrap)
  7. quoted(String value)
  8. quoted(String value, boolean addQuotes)
  9. quotedEscape(final String string)