You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by df...@apache.org on 2001/07/11 07:33:33 UTC

cvs commit: jakarta-oro/src/java/org/apache/oro/text/perl Perl5Util.java

dfs         01/07/10 22:33:33

  Modified:    .        CHANGES
               src/java/org/apache/oro/text/perl Perl5Util.java
  Log:
  Deprecated Vector Perl5Util.split(String input) and replaced with
  void Perl5Util.split(Collection results, String input).  This
  should have been done in an earlier release along with the other
  split methods, but this method slipped through the cracks.
  
  Revision  Changes    Path
  1.16      +6 -1      jakarta-oro/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/CHANGES,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- CHANGES	2001/07/10 12:57:01	1.15
  +++ CHANGES	2001/07/11 05:33:31	1.16
  @@ -1,6 +1,11 @@
  -$Id: CHANGES,v 1.15 2001/07/10 12:57:01 dfs Exp $
  +$Id: CHANGES,v 1.16 2001/07/11 05:33:31 dfs Exp $
   
   Version 2.0.x
  +
  +o Deprecated Vector Perl5Util.split(String input) and replaced with
  +  void Perl5Util.split(Collection results, String input).  This
  +  should have been done in an earlier release along with the other
  +  split methods, but this method slipped through the cracks.
   
   o Fixed bug in AwkMatcher that didn't properly handle PatternMatcherInput
     matches when PatternMatcherInput had a non-zero begin offset.
  
  
  
  1.9       +16 -1     jakarta-oro/src/java/org/apache/oro/text/perl/Perl5Util.java
  
  Index: Perl5Util.java
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/src/java/org/apache/oro/text/perl/Perl5Util.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Perl5Util.java	2001/05/17 21:59:27	1.8
  +++ Perl5Util.java	2001/07/11 05:33:33	1.9
  @@ -58,7 +58,7 @@
    */
   
   /*
  - * $Id: Perl5Util.java,v 1.8 2001/05/17 21:59:27 dfs Exp $
  + * $Id: Perl5Util.java,v 1.9 2001/07/11 05:33:33 dfs Exp $
    */
   import java.util.*;
   import org.apache.oro.text.regex.*;
  @@ -801,6 +801,19 @@
     }
   
     /**
  +   * Splits input in the default Perl manner, splitting on all whitespace.
  +   * This method is identical to calling:
  +   * <blockquote><pre>
  +   * split(results, "/\\s+/", input);
  +   * </pre></blockquote>
  +   */
  +  public synchronized void split(Collection results, String input)
  +       throws MalformedPerl5PatternException
  +  {
  +    split(results, "/\\s+/", input);
  +  }
  +
  +  /**
      * Splits a String into strings contained in a Vector of size no greater
      * than a specified limit.  The String is split using a regular expression
      * as the delimiter.  The regular expression is a pattern specified
  @@ -890,6 +903,8 @@
      * <blockquote><pre>
      * split("/\\s+/", input);
      * </pre></blockquote>
  +   * @deprecated Use
  +   * {@link #split(Collection results, String input)} instead.
      */
     public synchronized Vector split(String input)
          throws MalformedPerl5PatternException