xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Vasilik" <eric...@bea.com>
Subject RE: Patch for Unicode-Build-Bug
Date Tue, 16 Sep 2003 17:27:37 GMT
The regular expression package in the JDK was not used, I believe, on purpose.  I can't recall
exactly why, at the moment, but David Bau should be able to elaborate.... 

-----Original Message-----
From: Darrell Teague [mailto:darrell.teague@mantech.com]
Sent: Tuesday, September 16, 2003 9:56 AM
To: xmlbeans-dev@xml.apache.org
Subject: RE: Patch for Unicode-Build-Bug


Is this to say that the JDK 1.4 java.util.regex classes (Matcher and Pattern) are not used?
 I assume it is because the BEA software was created before the JDK 1.4 was released.  However,
are there any advantages (besides standardization and minimizing additional library integration)
to moving to the JDK 1.4 regEx libraries?  I have used them and found them fairly robust but
have not done any kind of comparative (e.g., performance) analysis.

>>> ericvas@bea.com 09/16/03 12:41PM >>>
The regular expression code was taken from xerces.  I noticed that the current version of
RegularExpression.java in xerces has changed, and the javadoc, in particular, has been updated
to deal with the comments you mention in your patch.  Xerces seems to deal with this problem
by adding spaces instead of putting in an extra back slash (diff follows).  I will check in
the new version the exists in xerces.  

- Eric

    
diff -r1.1 RegularExpression.java
137c137
<  *          <kbd>\u005cu</kbd><var>c</var>, <kbd>\L</kbd>,
<kbd>\U</kbd>,
---
>  *          <kbd>\u005c u</kbd><var>c</var>, <kbd>\L</kbd>,
<kbd>\U</kbd>,
182c182
<  *       <dt class="REGEX"><kbd>\u005cu</kbd><var>HHHH</var>
---
>  *       <dt class="REGEX"><kbd>\u005c u</kbd><var>HHHH</var>
206c206
<  *         <li class="REGEX">A character (including <Kbd>\e \f \n \r \t</kbd>
<kbd>\u005cx</kbd><var>HH</var> <kbd>\u005cx{</kbd><var>HHHH</var><kbd>}</kbd>
<
!--kbd>\u005cu</kbd><var>HHHH</var--> <kbd>\u005cv</kbd><var>HHHHHH</var>)
---
>  *         <li class="REGEX">A character (including <Kbd>\e \f \n \r \t</kbd>
<kbd>\u005cx</kbd><var>HH</var> <kbd>\u005cx{</kbd><var>HHHH</var><kbd>}</kbd>
<
!--kbd>\u005c u</kbd><var>HHHH</var--> <kbd>\u005cv</kbd><var>HHHHHH</var>)
499c499
<  * <!--               | '\u005cu' hex-char hex-char hex-char hex-char
---
>  * <!--               | '\u005c u' hex-char hex-char hex-char hex-char
518a519
>  * @version $Id: RegularExpression.java,v 1.7 2003/07/15 12:28:25 neeraj Exp $

-----Original Message-----
From: Sascha Kulawik [ mailto:sascha@kulawik.de]
Sent: Monday, September 15, 2003 10:07 PM
To: xmlbeans-dev@xml.apache.org
Subject: Patch for Unicode-Build-Bug


Hello,

here is a small fix regarding the unicode build bug as mentioned
previously by  
Roland Schemers.

Regards,

Sascha

--
Sascha Kulawik

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/




Mime
View raw message