[Arakhnę-Dev] [389] * Clean pom files.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 389
Author:   galland
Date:     2013-03-20 21:24:56 +0100 (Wed, 20 Mar 2013)
Log Message:
-----------
* Clean pom files.
* Merge the two existing TextUtil classes.

Modified Paths:
--------------
    trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java
    trunk/attrs/pom.xml
    trunk/math/pom.xml
    trunk/ui/ui-awt/pom.xml
    trunk/ui/ui-base/pom.xml
    trunk/ui/ui-swing/pom.xml
    trunk/ui/ui-vector/pom.xml
    trunk/ui/ui-vector-android/pom.xml
    trunk/ui/ui-vector-awt/pom.xml
    trunk/util/pom.xml

Removed Paths:
-------------
    trunk/util/src/main/java/org/arakhne/afc/text/

Modified: trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java
===================================================================
--- trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java	2013-03-20 20:24:56 UTC (rev 389)
@@ -60,6 +60,24 @@
 	private static SoftReference<Map<String,Integer>> htmlToJavaTransTbl = null;
 	private static SoftReference<Map<Character,String>> javaToHtmlTransTbl = null;
 
+	/** Enforced version of the equality test on two strings with case ignoring.
+	 * This enforced version supported <code>null</code> values
+	 * given as parameters.
+	 * 
+	 * @param a
+	 * @param b
+	 * @param isNullEmptyEquivalence indicates if the <code>null</code> value
+	 * is assimilated to the empty string.
+	 * @return <code>true</code> if a is equal to b; otherwise <code>false</code>.
+	 */
+	public static boolean equalsIgnoreCase(String a, String b, boolean isNullEmptyEquivalence) {
+		String aa = (a!=null || !isNullEmptyEquivalence) ? a : "";  //$NON-NLS-1$
+		String bb = (b!=null || !isNullEmptyEquivalence) ? b : "";  //$NON-NLS-1$
+		if (aa==null) return bb==null;
+		if (bb==null) return false;
+		return aa.equalsIgnoreCase(bb);
+	}
+
 	/** Replies a base 26 encoding string for the given
 	 * number.
 	 * 

Modified: trunk/attrs/pom.xml
===================================================================
--- trunk/attrs/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/attrs/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -7,7 +7,6 @@
 		<version>4.5-SNAPSHOT</version>
 	</parent>
 
-	<groupId>org.arakhne.afc</groupId>
 	<artifactId>attrs</artifactId>
 	<version>1.0-SNAPSHOT</version>
 	<name>Arakhne Attribute API</name>

Modified: trunk/math/pom.xml
===================================================================
--- trunk/math/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/math/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -6,7 +6,6 @@
 		<version>4.5-SNAPSHOT</version>
   </parent>
   
-  <groupId>org.arakhne.afc</groupId>
   <artifactId>math</artifactId>
   <version>1.0-SNAPSHOT</version>
   <name>Arakhne Math Tools</name>

Modified: trunk/ui/ui-awt/pom.xml
===================================================================
--- trunk/ui/ui-awt/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-awt/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -8,7 +8,6 @@
   
   <groupId>org.arakhne.afc.ui</groupId>
   <artifactId>ui-awt</artifactId>
-  <version>1.0-SNAPSHOT</version>
   <name>Arakhne AWT Tools</name>
   
   <dependencies>

Modified: trunk/ui/ui-base/pom.xml
===================================================================
--- trunk/ui/ui-base/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-base/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -9,7 +9,6 @@
 
 	<groupId>org.arakhne.afc.ui</groupId>
 	<artifactId>ui-base</artifactId>
-	<version>1.0-SNAPSHOT</version>
 	<name>Arakhne Base UI Tools</name>
 
 	<dependencies>

Modified: trunk/ui/ui-swing/pom.xml
===================================================================
--- trunk/ui/ui-swing/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-swing/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -9,7 +9,6 @@
 
 	<groupId>org.arakhne.afc.ui</groupId>
 	<artifactId>ui-swing</artifactId>
-	<version>1.0-SNAPSHOT</version>
 	<name>Arakhne Swing Widgets</name>
 
 	<dependencies>

Modified: trunk/ui/ui-vector/pom.xml
===================================================================
--- trunk/ui/ui-vector/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-vector/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -8,7 +8,6 @@
   
   <groupId>org.arakhne.afc.ui</groupId>
   <artifactId>ui-vector</artifactId>
-  <version>1.0-SNAPSHOT</version>
   <name>Arakhne Vector Window Toolkit</name>
   
   <dependencies>

Modified: trunk/ui/ui-vector-android/pom.xml
===================================================================
--- trunk/ui/ui-vector-android/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-vector-android/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -9,7 +9,6 @@
 
 	<groupId>org.arakhne.afc.ui</groupId>
 	<artifactId>ui-vector-android</artifactId>
-	<version>1.0-SNAPSHOT</version>
 	<name>Vector-API Android-Implementation</name>
 
 	<dependencies>

Modified: trunk/ui/ui-vector-awt/pom.xml
===================================================================
--- trunk/ui/ui-vector-awt/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/ui/ui-vector-awt/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -9,7 +9,6 @@
 
 	<groupId>org.arakhne.afc.ui</groupId>
 	<artifactId>ui-vector-awt</artifactId>
-	<version>1.0-SNAPSHOT</version>
 	<name>Vector-API AWT-Implementation</name>
 
 	<dependencies>

Modified: trunk/util/pom.xml
===================================================================
--- trunk/util/pom.xml	2013-03-20 14:54:50 UTC (rev 388)
+++ trunk/util/pom.xml	2013-03-20 20:24:56 UTC (rev 389)
@@ -5,10 +5,11 @@
 		<groupId>org.arakhne.afc</groupId>
 		<version>4.5-SNAPSHOT</version>
   </parent>
-  <groupId>org.arakhne.afc</groupId>
+
   <artifactId>util</artifactId>
   <version>1.0-SNAPSHOT</version>
   <name>Arakhne Utilities</name>
+  <url>http://www.arakhne.org/arakhneUtil</url>
   
   <dependencies>
       <dependency>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/