commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (TEXT-85) Create CaseUtils class. Add toCamelCase
Date Sun, 11 Jun 2017 12:19:20 GMT


ASF GitHub Bot commented on TEXT-85:

Github user arunvinudss commented on the issue:
    @chtompki Just wondering why space is added as a default delimiter for null delimiter
arrays but not for empty delimiter array in WordUtils.capitalizeFully .
    WordUtils.capitalizeFully("i am fine") --> I Am Fine
    WordUtils.capitalizeFully("i am fine", null) --> I Am Fine
    WordUtils.capitalizeFully("i am fine", new char[]{}) --> i am fine
    I do understand why it happens but not sure if it was intentional ? 

> Create CaseUtils class. Add toCamelCase
> ---------------------------------------
>                 Key: TEXT-85
>                 URL:
>             Project: Commons Text
>          Issue Type: Improvement
>            Reporter: Rob Tompkins
>            Assignee: Rob Tompkins
> Based on the conversation here:
> We wish to have a {{toCamelCase}} method. The suggestion is to create a {{CaseUtils}}
> 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:
> {code}
> String toCamelCase(String str, char delimiter, boolean capitalizeFirstLetter)
> {code}
> potentially with {{String}} replaced with {{CharSequence}}.
> Lastly, {{WordUtils.capitalizeFully(String str, final char... delimiters)}} might be
a good starting point.

This message was sent by Atlassian JIRA

View raw message