cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap/patterns PatternMatcher.java PatternTranslator.java
Date Sun, 27 Feb 2000 07:15:12 GMT
pier        00/02/26 23:15:11

  Modified:    src/org/apache/cocoon/sitemap/patterns Tag: xml-cocoon2
                        PatternMatcher.java PatternTranslator.java
  Log:
  [Cocoon 2.0] Ups... Found HUGE bug in those. I need more time to fix it.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +5 -1      xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternMatcher.java
  
  Index: PatternMatcher.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternMatcher.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PatternMatcher.java	2000/02/27 05:45:20	1.1.2.3
  +++ PatternMatcher.java	2000/02/27 07:15:11	1.1.2.4
  @@ -24,7 +24,7 @@
    * 
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/27 05:45:20 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/02/27 07:15:11 $
    */
   public class PatternMatcher {
   
  @@ -149,6 +149,10 @@
        * This method returns <b>true</b> if the specified <code>char []</code>
        * can be matched by the pattern created by <code>convertPattern(...)</code>
        * be represented as an <code>int []</code>, <b>false</b> otherwise.
  +     * <br>
  +     * <b>FIXME: This routine doesn't match when the pattern ends with a
  +     *    wildcard. Need to fix together with <code>translatePattern()</code>,
  +     *    in <code>PatternTranslator</code> otherwise it won't work.</b>
        *
        * @param buff The <code>char []</code> of the path to be matched.
        * @param expr The <code>int []</code> representing the pattern, as
  
  
  
  1.1.2.4   +8 -2      xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternTranslator.java
  
  Index: PatternTranslator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/sitemap/patterns/Attic/PatternTranslator.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- PatternTranslator.java	2000/02/27 05:45:20	1.1.2.3
  +++ PatternTranslator.java	2000/02/27 07:15:11	1.1.2.4
  @@ -19,7 +19,7 @@
    * 
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/02/27 05:45:20 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/02/27 07:15:11 $
    */
   public class PatternTranslator extends PatternMatcher {
   
  @@ -117,7 +117,13 @@
           super.sourcePattern=s;
       }
   
  -    /** Internal routines for translation */
  +    /** 
  +     * Internal routines for translation
  +     * <br>
  +     * <b>FIXME: This routine doesn't match when the pattern ends with a
  +     *    wildcard. Need to fix together with <code>matchPattern()</code>,
  +     *    in <code>PatternMatcher</code> otherwise it won't work.</b>
  +     */
       protected String translatePattern(char buff[], int expr[], int trns[])
       throws NullPointerException {
           char rslt[]=new char[expr.length+trns.length+buff.length];
  
  
  

Mime
View raw message