Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEA9411F37 for ; Mon, 2 Jun 2014 19:32:01 +0000 (UTC) Received: (qmail 22631 invoked by uid 500); 2 Jun 2014 19:32:01 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 22562 invoked by uid 500); 2 Jun 2014 19:32: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 22555 invoked by uid 99); 2 Jun 2014 19:32:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 19:32:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Mon, 02 Jun 2014 19:32:01 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 874D2238890B; Mon, 2 Jun 2014 19:31:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1599322 - in /commons/proper/lang/trunk/src: changes/changes.xml main/java/org/apache/commons/lang3/StringUtils.java test/java/org/apache/commons/lang3/StringUtilsIsTest.java Date: Mon, 02 Jun 2014 19:31:37 -0000 To: commits@commons.apache.org From: britter@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140602193137.874D2238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: britter Date: Mon Jun 2 19:31:36 2014 New Revision: 1599322 URL: http://svn.apache.org/r1599322 Log: LANG-1017: Use non-ASCII digits in Javadoc examples for StringUtils.isNumeric. Thanks to Christoph Schneegans. Modified: commons/proper/lang/trunk/src/changes/changes.xml commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java Modified: commons/proper/lang/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1599322&r1=1599321&r2=1599322&view=diff ============================================================================== --- commons/proper/lang/trunk/src/changes/changes.xml [utf-8] (original) +++ commons/proper/lang/trunk/src/changes/changes.xml [utf-8] Mon Jun 2 19:31:36 2014 @@ -22,6 +22,7 @@ + Use non-ASCII digits in Javadoc examples for StringUtils.isNumeric Change min/max methods in NumberUtils/IEEE754rUtils from array input parameters to varargs Add fuzzy String matching logic to StringUtils Add wrap (with String or char) to StringUtils Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1599322&r1=1599321&r2=1599322&view=diff ============================================================================== --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original) +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Mon Jun 2 19:31:36 2014 @@ -6017,6 +6017,7 @@ public class StringUtils { * StringUtils.isNumeric("") = false * StringUtils.isNumeric(" ") = false * StringUtils.isNumeric("123") = true + * StringUtils.isNumeric("\u0967\u0968\u0969") = true * StringUtils.isNumeric("12 3") = false * StringUtils.isNumeric("ab2c") = false * StringUtils.isNumeric("12-3") = false @@ -6057,6 +6058,8 @@ public class StringUtils { * StringUtils.isNumericSpace(" ") = true * StringUtils.isNumericSpace("123") = true * StringUtils.isNumericSpace("12 3") = true + * StringUtils.isNumeric("\u0967\u0968\u0969") = true + * StringUtils.isNumeric("\u0967\u0968 \u0969") = true * StringUtils.isNumericSpace("ab2c") = false * StringUtils.isNumericSpace("12-3") = false * StringUtils.isNumericSpace("12.3") = false Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java?rev=1599322&r1=1599321&r2=1599322&view=diff ============================================================================== --- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java (original) +++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java Mon Jun 2 19:31:36 2014 @@ -143,6 +143,8 @@ public class StringUtilsIsTest { assertFalse(StringUtils.isNumeric("ham kso")); assertTrue(StringUtils.isNumeric("1")); assertTrue(StringUtils.isNumeric("1000")); + assertTrue(StringUtils.isNumeric("\u0967\u0968\u0969")); + assertFalse(StringUtils.isNumeric("\u0967\u0968 \u0969")); assertFalse(StringUtils.isNumeric("2.3")); assertFalse(StringUtils.isNumeric("10 00")); assertFalse(StringUtils.isNumeric("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug")); @@ -165,6 +167,8 @@ public class StringUtilsIsTest { assertTrue(StringUtils.isNumericSpace("1000")); assertFalse(StringUtils.isNumericSpace("2.3")); assertTrue(StringUtils.isNumericSpace("10 00")); + assertTrue(StringUtils.isNumericSpace("\u0967\u0968\u0969")); + assertTrue(StringUtils.isNumericSpace("\u0967\u0968 \u0969")); assertFalse(StringUtils.isNumericSpace("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug")); assertFalse(StringUtils.isNumericSpace("_")); assertFalse(StringUtils.isNumericSpace("hkHKHik*khbkuh"));