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

[lang] WordUtils capitalize improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 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

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

              Dates

                Created:
                Updated:
                Resolved: