commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21841] New: - [lang] Rationalize StringUtils slice functions
Date Thu, 24 Jul 2003 03:38:20 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=21841>.
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=21841

[lang] Rationalize StringUtils slice functions

           Summary: [lang] Rationalize StringUtils slice functions
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


The attached patch modifies the behavior of StringUtils.sliceFirst and
StringUtils.sliceFirstRemainder to consistently handle <string, delimiter> pairs
where the delimiter is null, empty or does not occur in the string, as discussed
on the list.

The patch also refactors the slice functions to take advantage of
StringUtils.indexOf and StringUtils.lastIndexOf.

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


Mime
View raw message