Hi!

I've added quote() method (which is defined in java 1.5) to Pattern.
The result of this method is implementation-dependent: if we don't have '\E' in 
the input then the quoting is simple; otherwise quote '\' (of every '\E') by 
doubling it (there's no need to quote that 'E' itself), and the rest parts of 
the string are quoted in the ordinary way (\Q...\E).

ChangeLog entries:
        * java/util/regex/Pattern.java:
        (quote(String)): New public static method.

Attachment: classpath-ivmai-26.diff
Description: Binary data

Reply via email to