[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc
StringUtil.java
Larry Hamel
lhamel at jcorp2.servlets.net
Wed May 5 15:46:00 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc
In directory jcorp2.servlets.net:/tmp/cvs-serv3576/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc
Modified Files:
StringUtil.java
Log Message:
cosmetic
Index: StringUtil.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc/StringUtil.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** StringUtil.java 16 Apr 2004 05:48:11 -0000 1.23
--- StringUtil.java 5 May 2004 22:45:58 -0000 1.24
***************
*** 78,87 ****
- /*
- * StringUtil.java
- *
- * Copyright 1999, 2000, 2001 Jcorporate Ltd.
- */
-
/**
* This is class that consists of static methods, utilities for
--- 78,81 ----
***************
*** 89,93 ****
*
* @author Michael Nash, Peter Pilgrim, Henri Yves AMAIZO
- * @version $Revision$ $Date$
*/
public final class StringUtil {
--- 83,86 ----
***************
*** 374,378 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @return Hashtable Character mapping table.
--- 367,370 ----
***************
*** 420,424 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s the string to remove the accent characters
--- 412,415 ----
***************
*** 447,451 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String to change
--- 438,441 ----
***************
*** 462,466 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param decim1 First string to compare
--- 452,455 ----
***************
*** 478,482 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param int1 first string to compare
--- 467,470 ----
***************
*** 494,498 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s String to check.
--- 482,485 ----
***************
*** 507,511 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str string to check
--- 494,497 ----
***************
*** 545,549 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s string to check.
--- 531,534 ----
***************
*** 563,567 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param email string to check
--- 548,551 ----
***************
*** 587,591 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str string to check
--- 571,574 ----
***************
*** 604,608 ****
* Check if number
* author Henri Yves AMAIZO
- * $Date$
*
* @param str to check
--- 587,590 ----
***************
*** 622,626 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param siren the company number
--- 604,607 ----
***************
*** 667,671 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param siret The siret number
--- 648,651 ----
***************
*** 691,695 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s the parameter to check
--- 671,674 ----
***************
*** 708,712 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str string to reformat
--- 687,690 ----
***************
*** 730,734 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str string to change
--- 708,711 ----
***************
*** 743,747 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param text string in
--- 720,723 ----
***************
*** 770,774 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param text search and replace in
--- 746,749 ----
***************
*** 785,789 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param text search and replace in
--- 760,763 ----
***************
*** 801,805 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param text search and replace in
--- 775,778 ----
***************
*** 832,836 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s String comma delimited string to format
--- 805,808 ----
***************
*** 845,849 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s String comma delimited string to format
--- 817,820 ----
***************
*** 859,863 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param s String comma delimited string to format
--- 830,833 ----
***************
*** 891,895 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String to un-upper case the first character
--- 861,864 ----
***************
*** 917,921 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String to make the first character upper.
--- 886,889 ----
***************
*** 941,945 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String to repeat
--- 909,912 ----
***************
*** 973,977 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String str string to center padding
--- 940,943 ----
***************
*** 987,991 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String str string to pad with
--- 953,956 ----
***************
*** 1011,1015 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String
--- 976,979 ----
***************
*** 1034,1038 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String
--- 998,1001 ----
***************
*** 1049,1053 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String
--- 1012,1015 ----
***************
*** 1063,1067 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String
--- 1025,1028 ----
***************
*** 1101,1105 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str String
--- 1062,1065 ----
***************
*** 1144,1148 ****
* Create a random string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count size of string.
--- 1104,1107 ----
***************
*** 1156,1160 ****
* Create a random Ascii String
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1115,1118 ----
***************
*** 1168,1172 ****
* Create a random character only string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count size of string
--- 1126,1129 ----
***************
*** 1180,1184 ****
* Create a random alpha numeric string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1137,1140 ----
***************
*** 1192,1196 ****
* Create a random numeric string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the final string
--- 1148,1151 ----
***************
*** 1206,1210 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1161,1164 ----
***************
*** 1222,1226 ****
* of the characters.
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1176,1179 ----
***************
*** 1240,1244 ****
* of the characters.
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1193,1196 ----
***************
*** 1291,1295 ****
* Create a random string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1243,1246 ----
***************
*** 1304,1308 ****
* Create a random string
* author Henri Yves AMAIZO
- * $Date$
*
* @param count the size of the string
--- 1255,1258 ----
***************
*** 1318,1322 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str The string to split String
--- 1268,1271 ----
***************
*** 1332,1336 ****
* <p/>
* author Henri Yves AMAIZO
- * $Date$
*
* @param str The string to split String
--- 1281,1284 ----
***************
*** 1464,1468 ****
StringBuffer buf = new StringBuffer(1024);
int pos = 0; // current cursor position
- int lastPos = 0; // the last non-blank space position.
int lineLength = 0; // the line length
while (pos < inputLength) {
--- 1412,1415 ----
***************
*** 1487,1493 ****
}
- // Record position for a beginning of a word
- lastPos = pos;
-
// Read the word
StringBuffer word = new StringBuffer(64);
--- 1434,1437 ----
***************
*** 1524,1528 ****
}
-
} /* StringUtil */
--- 1468,1471 ----
More information about the cvs
mailing list