jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: jakarta-oro/src/java/org/apache/oro/text/regex Perl5Matcher.java
Date Wed, 13 Jun 2001 01:05:59 GMT
dfs         01/06/12 18:05:59

  Modified:    src/java/org/apache/oro/text/regex Perl5Matcher.java
  Log:
  Added support for [[:alpha:]] which somehow was omitted.
  
  Revision  Changes    Path
  1.15      +7 -4      jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java
  
  Index: Perl5Matcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/regex/Perl5Matcher.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Perl5Matcher.java	2001/05/20 10:52:26	1.14
  +++ Perl5Matcher.java	2001/06/13 01:05:57	1.15
  @@ -59,7 +59,7 @@
   
   
   /*
  - * $Id: Perl5Matcher.java,v 1.14 2001/05/20 10:52:26 dfs Exp $
  + * $Id: Perl5Matcher.java,v 1.15 2001/06/13 01:05:57 dfs Exp $
    */
   import java.io.IOException;
   import java.util.*;
  @@ -652,9 +652,6 @@
   
   	offset++;
   	switch ( __program[offset++] ) {
  -	case OpCode._ALNUMC:
  -	  if(Character.isLetterOrDigit(code)) return isANYOF;
  -	  break;
   	case OpCode._ALNUM:
   	  if(OpCode._isWordCharacter(code)) return isANYOF;
   	  break;
  @@ -672,6 +669,12 @@
   	  break;
   	case OpCode._NDIGIT:
   	  if(!Character.isDigit(code)) return isANYOF;
  +	  break;
  +	case OpCode._ALNUMC:
  +	  if(Character.isLetterOrDigit(code)) return isANYOF;
  +	  break;
  +	case OpCode._ALPHA:
  +	  if(Character.isLetter(code)) return isANYOF;
   	  break;
   	case OpCode._BLANK:
   	  if(Character.isSpaceChar(code)) return isANYOF;
  
  
  

Mime
View raw message