Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 12866 invoked from network); 25 Jun 2009 05:00:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 05:00:51 -0000 Received: (qmail 18345 invoked by uid 500); 25 Jun 2009 05:01:01 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 18228 invoked by uid 500); 25 Jun 2009 05:01:01 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 18219 invoked by uid 99); 25 Jun 2009 05:01:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 05:01:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 05:00:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6CF8723888AD; Thu, 25 Jun 2009 05:00:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r788259 - in /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate: EscapeLowAsciiAsUnicode.java EscapeNonAsciiAsUnicode.java EscapeUtils.java Date: Thu, 25 Jun 2009 05:00:39 -0000 To: commits@commons.apache.org From: bayard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090625050039.6CF8723888AD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bayard Date: Thu Jun 25 05:00:39 2009 New Revision: 788259 URL: http://svn.apache.org/viewvc?rev=788259&view=rev Log: Removing unnecessary Escape*AsciiAsUnicode classes. UnicodeEscaper now handles the range concept directly and the ctrl character lookup table is now a direct LookupTranslator defined in EscapeUtils. cf LANG-505 Removed: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeLowAsciiAsUnicode.java commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeNonAsciiAsUnicode.java Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java?rev=788259&r1=788258&r2=788259&view=diff ============================================================================== --- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java (original) +++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/translate/EscapeUtils.java Thu Jun 25 05:00:39 2009 @@ -59,8 +59,15 @@ {"\\", "\\\\"}, {"/", "\\/"} }), - new EscapeLowAsciiAsUnicode(), - new EscapeNonAsciiAsUnicode() + new LookupTranslator( + new String[][] { + {"\b", "\\b"}, + {"\n", "\\n"}, + {"\t", "\\t"}, + {"\f", "\\f"}, + {"\r", "\\r"} + }), + UnicodeEscaper.outsideOf(32, 0x7f) ); public static final String escapeEcmaScript(String input) {