commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
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 GMT
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 @@
   <body>
 
   <release version="3.4" date="tba" description="tba">
+    <action issue="LANG-1017" type="update" dev="britter" due-to="Christoph Schneegans">Use
non-ASCII digits in Javadoc examples for StringUtils.isNumeric</action>
     <action issue="LANG-1008" type="update" dev="britter" due-to="Thiago Andrade">Change
min/max methods in NumberUtils/IEEE754rUtils from array input parameters to varargs</action>
     <action issue="LANG-999" type="add" dev="britter" due-to="Ben Ripkens">Add fuzzy
String matching logic to StringUtils</action>
     <action issue="LANG-1006" type="update" dev="britter" due-to="Thiago Andrade">Add
wrap (with String or char) to StringUtils</action>

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"));



Mime
View raw message