commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang Strings.java
Date Wed, 19 Jun 2002 03:04:19 GMT
bayard      2002/06/18 20:04:19

  Modified:    lang/src/java/org/apache/commons/lang Strings.java
  Log:
  Made it so a CharRange can be a single "-" character.
  
  Revision  Changes    Path
  1.5       +8 -1      jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/Strings.java
  
  Index: Strings.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/Strings.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Strings.java	4 Jun 2002 15:46:57 -0000	1.4
  +++ Strings.java	19 Jun 2002 03:04:19 -0000	1.5
  @@ -2038,6 +2038,13 @@
       public void add(String str) {
           int sz = str.length();
           CharRange range = null;
  +
  +        if("-".equals(str)) {
  +            range = new CharRange('_');
  +            set.add(range);
  +            return;
  +        } 
  +
           boolean end = false;
           boolean negated = false;
           for(int i=0; i<sz; i++) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message