commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/TEXT-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045945#comment-16045945
] 

ASF GitHub Bot commented on TEXT-85:
------------------------------------

Github user sebbASF commented on the issue:

    https://github.com/apache/commons-text/pull/46
  
    An empty delimiter array means the caller does not want any delimiters to be used.
    But I would expect the output to capitalise the first letter:
    
    WordUtils.capitalizeFully("i am fine", new char[]{}) --> I am fine
    
    Likewise if the specified delimiters are not found in the input the first letter should
be capitalised.
    Does it not do so?


> Create CaseUtils class. Add toCamelCase
> ---------------------------------------
>
>                 Key: TEXT-85
>                 URL: https://issues.apache.org/jira/browse/TEXT-85
>             Project: Commons Text
>          Issue Type: Improvement
>            Reporter: Rob Tompkins
>            Assignee: Rob Tompkins
>
> 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:
> {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. https://github.com/apache/commons-text/blob/master/src/main/java/org/apache/commons/text/WordUtils.java#L467-L499



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message