Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-85

Create CaseUtils class. Add toCamelCase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • None

    Description

      Based on the conversation here:
      http://markmail.org/message/7nvizsbykvxpr7g5

      We wish to have a toCamelCase method. The suggestion is to create a CaseUtils class.

      I wonder if we should think about deprecating the case management in WordUtils and move it over? Maybe, maybe not.

      I would think our method signature would look something like:

      String toCamelCase(String str, char delimiter, boolean capitalizeFirstLetter)
      

      potentially with String replaced with CharSequence.

      Lastly, WordUtils.capitalizeFully(String str, final char... delimiters) might be a good starting point. https://github.com/apache/commons-text/blob/master/src/main/java/org/apache/commons/text/WordUtils.java#L467-L499

      Attachments

        Issue Links

          Activity

            People

              chtompki Rob Tompkins
              chtompki Rob Tompkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: