[
https://issues.apache.org/jira/browse/LANG-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell updated LANG-671:
-------------------------------
Description:
Whitespace methods:
{code}
public static int indexOfWhitespace(CharSequence str, int startPos)
public static int lastIndexOfWhitespace(CharSequence str, int startPos)
{code}
Non-whitespace methods:
{code}
public static int indexOfNonWhitespace(CharSequence str, int startPos)
public static int lastIndexOfNonWhitespace(CharSequence str, int startPos)
{code}
was:
Whitespace methods:
{code}
public static int indexOfWhitespace(CharSequence str, int startPos)
public static int lastIndexOfWhitespace(CharSequence str, int startPos)
{code}
Non-whitespace methods:
{code}
public static int indexOfNonWhitespace(CharSequence str, int startPos)
public static int lastIndexOfNonWhitespace(CharSequence str, int startPos)
{code}
Nope, no objection. I like the idea in general, just looking for a general
approach to avoid a bajillion methods.
Assigning to 3.1 as there's nothing blocking for a 3.0 release.
> Add indexOf() & lastIndexOf() methods for Whitespace and Non-whitespae to
> StringUtils
> -------------------------------------------------------------------------------------
>
> Key: LANG-671
> URL: https://issues.apache.org/jira/browse/LANG-671
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Niall Pemberton
> Attachments: LANG-671-StringUtils-whitespace.patch
>
>
> Whitespace methods:
> {code}
> public static int indexOfWhitespace(CharSequence str, int startPos)
> public static int lastIndexOfWhitespace(CharSequence str, int startPos)
> {code}
> Non-whitespace methods:
> {code}
> public static int indexOfNonWhitespace(CharSequence str, int startPos)
> public static int lastIndexOfNonWhitespace(CharSequence str, int startPos)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.