[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc HTMLUtil.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Tue Jun 22 18:21:15 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-serv22730/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc

Modified Files:
	HTMLUtil.java 
Log Message:
use CAPS for constants


Index: HTMLUtil.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc/HTMLUtil.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** HTMLUtil.java	23 Jun 2004 01:17:02 -0000	1.3
--- HTMLUtil.java	23 Jun 2004 01:21:13 -0000	1.4
***************
*** 31,36 ****
              char c = text.charAt(i);
              // Check for non ISO8859-1 characters
!             if ((int) c < symbolicCode.length) { // Maybe slower than  "(int)c & 0xFF != 0" but more evolutive
!                 String sc = symbolicCode[(int) c];
                  if ("".equals(sc)) {
                      t = t.append(c);
--- 31,36 ----
              char c = text.charAt(i);
              // Check for non ISO8859-1 characters
!             if ((int) c < SYMBOLIC_CODE.length) { // Maybe slower than  "(int)c & 0xFF != 0" but more evolutive
!                 String sc = SYMBOLIC_CODE[(int) c];
                  if ("".equals(sc)) {
                      t = t.append(c);
***************
*** 90,97 ****
      private static void initSortedArray() {
          if ( sortedSymbolicCode == null ) {
!             sortedSymbolicCode = new NumericSymbolicCode[symbolicCode.length];
  
!             for (int i = 0; i < symbolicCode.length; i++) {
!                 sortedSymbolicCode[i] = new NumericSymbolicCode(symbolicCode[i], i);
              }
              Arrays.sort(sortedSymbolicCode);
--- 90,97 ----
      private static void initSortedArray() {
          if ( sortedSymbolicCode == null ) {
!             sortedSymbolicCode = new NumericSymbolicCode[SYMBOLIC_CODE.length];
  
!             for (int i = 0; i < SYMBOLIC_CODE.length; i++) {
!                 sortedSymbolicCode[i] = new NumericSymbolicCode(SYMBOLIC_CODE[i], i);
              }
              Arrays.sort(sortedSymbolicCode);
***************
*** 105,109 ****
       * that character or this symbolic code is not used.
       */
!     private static final String[] symbolicCode = {
          // 0
          "", "", "", "", "", "", "", "", "", "",
--- 105,109 ----
       * that character or this symbolic code is not used.
       */
!     private static final String[] SYMBOLIC_CODE = {
          // 0
          "", "", "", "", "", "", "", "", "", "",
***************
*** 256,260 ****
      /**
       * Array of symbolic code order symbolic code !<br>
!      * This array is the reciprocal from the 'symbolicCode' array.
       */
      private static NumericSymbolicCode[] sortedSymbolicCode = null;
--- 256,260 ----
      /**
       * Array of symbolic code order symbolic code !<br>
!      * This array is the reciprocal from the 'SYMBOLIC_CODE' array.
       */
      private static NumericSymbolicCode[] sortedSymbolicCode = null;



More information about the cvs mailing list