[lsc-changes] r425 - lsc/trunk/src/main/java/org/lsc/utils

rschermesser at lsc-project.org rschermesser at lsc-project.org
Mon Nov 9 16:48:50 CET 2009


Author: rschermesser
Date: 2009-11-09 16:48:50 +0100 (Mon, 09 Nov 2009)
New Revision: 425

Modified:
   lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java
Log:
Translate method names and consts in english

Modified: lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java
===================================================================
--- lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java	2009-11-09 15:48:42 UTC (rev 424)
+++ lsc/trunk/src/main/java/org/lsc/utils/FrenchFilters.java	2009-11-09 15:48:50 UTC (rev 425)
@@ -68,7 +68,7 @@
 					"[\\p{Alpha}\\s'\"áÁààâÂäÄééè" + "èêÊëËÌìÍíîÎïÏÒòÓóôÔöÖùÙÚúûÛüÜÝýç-]+";
 
 	/** Array of accents and cedillas */
-	private static final String[] REGEXP_ACCENTS_CEDILLES = {
+	private static final String[] REGEXP_ACCENTS_CEDILLAS = {
 		"À", "á", "Á",
 		"à",
 		"à", "â",
@@ -94,7 +94,7 @@
 	/**
 	 * Replacement chars for the array REGEXP_ACCENTS_CEDILLES
 	 */
-	private static final String[] REGEXP_STRING_ACCENTS_CEDILLES = {
+	private static final String[] REGEXP_STRING_ACCENTS_CEDILLAS = {
 		"A", "a", "A",
 		"a", "A",
 		"a", "A",
@@ -211,8 +211,8 @@
 	 * @return Filtered string
 	 */
 	public static String removeBadChars(final String src) {
-		return filterRegexp(src, REGEXP_ACCENTS_CEDILLES,
-						REGEXP_STRING_ACCENTS_CEDILLES);
+		return filterRegexp(src, REGEXP_ACCENTS_CEDILLAS,
+						REGEXP_STRING_ACCENTS_CEDILLAS);
 	}
 
 	/**
@@ -271,7 +271,7 @@
 	 *
 	 * @return the filtered phone number
 	 */
-	public static String filterPhones(final String phone2parse) {
+	public static String filterPhone(final String phone2parse) {
 		// We remove spaces, dots and dashes
 		String phoneResult = filterRegexp(phone2parse,
 						BAD_SEPARATOR_FOR_PHONE,
@@ -408,7 +408,7 @@
 	 * @throws CharacterUnacceptedException thrown if an rejected character
 	 * is encountered during analysis
 	 */
-	public static String filterNomPatronymique(final String name)
+	public static String filterLastName(final String name)
 					throws CharacterUnacceptedException {
 		String tmp = toUpperCaseAllBeginningNames(filterName(name));
 
@@ -427,7 +427,7 @@
 	 * @throws CharacterUnacceptedException thrown if an rejected character
 	 * is encountered during analysis
 	 */
-	public static String filterPrenomEtatCivil(final String name)
+	public static String filterFirstName(final String name)
 					throws CharacterUnacceptedException {
 		String tmp = toUpperCaseAllBeginningNames(filterName(name));
 



More information about the lsc-changes mailing list