You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/07/24 05:38:20 UTC

DO NOT REPLY [Bug 21841] New: - [lang] Rationalize StringUtils slice functions

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