Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-185

[lang] WordUtils capitalize improvement

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      27592

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                riaanoberholzer@yahoo.com Riaan Oberholzer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: