[
https://issues.apache.org/jira/browse/LANG-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14958506#comment-14958506
]
Sebb commented on LANG-1173:
----------------------------
What is the use case for such methods?
Why not use a regular expression to do this?
I'm concerned about code bloat.
If any methods are added to StringUtils they need to be of general use.
And they need to be versatile, to avoid having multiple similar methods that
could be merged into one more general method (but without adding too many
parameters).
> Addition of stripStartToChar
> ----------------------------
>
> Key: LANG-1173
> URL: https://issues.apache.org/jira/browse/LANG-1173
> Project: Commons Lang
> Issue Type: Wish
> Components: lang.*
> Reporter: Satyanarayana J
> Priority: Minor
>
> Looking for any possibility to add additional methods into StringUtils.
> We already use stripStart , which strips set of leading whitespaces to empty.
> As an addition, can we have below method?
> * stripStartToChar(String str, String/Character char) - leading whitespaces
> to a specific character/string
> or
> * stripStartAndReplace(String str, String stripChars, String/Character char)
> - leading characters to a specific character/string
> These methods could be useful to strip leading whitespaces/characters with a
> replacement string/characters
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)