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 27592] New: - WordUtils capitalize improvement
Date Thu, 11 Mar 2004 08:28:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27592>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27592

WordUtils capitalize improvement

           Summary: WordUtils capitalize improvement
           Product: Commons
           Version: 2.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: riaanoberholzer@yahoo.com


I'd like to see WordUtils being able to capitalize given more word separator 
characters than just white space, eg "Jean-Pierre". Currently it takes "jean-
pierre" and returns "Jean-pierre".

Maybe supply a list of additional separaters which should be treated as 
indication of a new word, just like whitespace?

Something like :

capitalize(String str, char[] separaters) 

used 

capitalize("jean-pierre du pond", new char[]{'-',' '});

would return "Jean-Pierre Du Pond".

---------------------------------------------------------------------
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