commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tompkins (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TEXT-45) WordUtils delimiters should be strings, not char varargs
Date Sun, 23 Apr 2017 15:32:04 GMT

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

Rob Tompkins edited comment on TEXT-45 at 4/23/17 3:31 PM:
-----------------------------------------------------------

I disagree with my comment from Feb 7 now. The varargs delimiters makes substantially more
sense consider {{WordUtils.capitalize("i am.fine", [' ','.'])="I Am.Fine";}}. This reads considerably
easier than {{WordUtils.capitalize("i am.fine"," .")}}. This feels vague because I wonder
whether to use the string as a whole as the delimiter or the character array underlying the
string as individual delimiters?


was (Author: chtompki):
I disagree with my comment from Feb 7 now. The varargs delimiters makes substantially more
sense consider {{WordUtils.capitalize("i am.fine", [' ','.'])="I Am.Fine";}}. This reads considerably
easier than {{WordUtils.capitalize("i am.fine"," .")}}. This feels vague because I wonder
whether to use the string as a whole as the delimiter or the character array underlying the
string as the delimiter?

> WordUtils delimiters should be strings, not char varargs
> --------------------------------------------------------
>
>                 Key: TEXT-45
>                 URL: https://issues.apache.org/jira/browse/TEXT-45
>             Project: Commons Text
>          Issue Type: Improvement
>            Reporter: Andrew Pennebaker
>            Priority: Minor
>              Labels: api,, interface,ease,of,use,, robustness,
>             Fix For: 1.1
>
>
> Strings behave like char varargs of arbitrary length, but are much easier to use.



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

Mime
View raw message