jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8298] - default split of empty string should return empty list
Date Fri, 19 Apr 2002 19:11:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8298>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8298

default split of empty string should return empty list

dfs@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From dfs@apache.org  2002-04-19 19:11 -------
Current behavior is intended, but deviates from Perl.  We're debating
the appropriate action on oro-dev.  Will probably make Perl5Util match
Perl's "leading empty fields are preserved, and empty trailing one are
deleted." rule which appears to take precedence over "If the PATTERN 
doesn't match at all, it returns the original string."  However, we
will probably leave org.apache.oro.text.regex.Util.split() alone and
add documentation explaining the difference in behavior.  Util.split()
is to be self-consistent and predictable with no special cases;
Perl5Util.split() is to be compatible with Perl's split.

Even though this was a simple test case, please include working example
code in future bug reports (e.g., there is no List.length()) to make
our jobs easier.  We all volunteer our time and anything that reduces
the time we have to spend diagnosing a problem is greatly appreciated
and improves the chances of a speedy resolution.

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


Mime
View raw message